Site logo

Archived topic

Possible typo in "Setting Up a Simple Custom Post Type" guide?

1 reply · Started by palik on May 19, 2021

Viewing posts 1–2 of 2

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 :)

This archived topic is closed to new replies.