Archived topic
Possible typo in "Setting Up a Simple Custom Post Type" guide?
1 reply · Started by palik on May 19, 2021
Hi there,
I think you might have a little typo in https://docs.generatepress.com/article/setting-up-a-simple-custom-post-type/ in "3. Update the single-project.php file" paragraph
Instead:
In the single-project.php file, update this line from single to project.
It should be
In the single-project.php file, update this line from generate_do_template_part( 'single' ) to get_template_part('content','project');
Why i think that? Because the first method is not working and the second works in my case :)
Hi there,
the generate_do_template_part() function is part of the GP theme - which calls the get_template_part - see here:
If its not working then that means some other function or change to the template is interfering with that code.