Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress The WordPress Template Hierarchy Custom Post Type Templates in WordPress An Important Review of Custom Post Type Setup

David Richied
David Richied
18,057 Points

Is any one else able to get this working?

I can't get this to work. I know sometimes the instructions for setting up something in a plugin (in this case, the custom post type ui), change, but if someone else has gotten this to work recently, I know it's just a typo or something.

https://teamtreehouse.com/library/the-wordpress-template-hierarchy/custom-post-type-templates-in-wordpress/an-important-review-of-custom-post-type-setup

Thanks for the help!

~David Richied

3 Answers

David Richied
David Richied
18,057 Points

I was able to get it to work! I just had to visit Settings>Permalinks to refresh the permalinks.

Thanks, that helped me too! I don't understand why that helped, but it did.

Should have been either creating a CPT coded from scratch or using Generate WP. Instead of using a dependency like Custom Post Type UI.

https://generatewp.com/post-type/