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

Diana Myers
Diana Myers
2,955 Points

Custom Post Types in Free Foundation Theme

I've added custom post types to the Joints WP theme using the plugin and query methods from the Wordpress theme course. Also per the developer I duplicated the loop-single.php and loop-archive.php and renamed them "loop-single-news-posts.php" and "loop-archive-news-posts.php". However, when I add categories to the custom post types, I get the the dreaded "404" page when I click on the category links. Blog categories are working correctly. Can anyone help explain what's going wrong and how I can fix it? View site (home page posts are custom post type "news-posts"): http://divamediadesign.com/fcs/

1 Answer

Diana Myers
Diana Myers
2,955 Points

Please disregard. Found the answer here: Add Custom Post Types to Tags and Categories in WordPress - http://premium.wpmudev.org/blog/add-custom-post-types-to-tags-and-categories-in-wordpress/