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 trialNathalie C
2,594 PointsCustom post type and template
I have three custom post types. All were working fine with template files for layout until this morning when one custom post type 'artists' has defaulted to using the archive.php layout. If I change permalink settings to default all works well. If I have it set on post-name, it breaks. Any ideas how to fix? The only thing I can I think is that I may have caused confusion when adding subcategories to a category with a similar name category 'artist' - which i had since deleted the subcategories
1 Answer
Nathalie C
2,594 PointsAh not to worry, worked it out, the category had the same name on the database so i deleted the artist category from within the sql file and all is restored, phew! Least I know where to look if ever that happens again.
Zac Gordon
Treehouse Guest TeacherZac Gordon
Treehouse Guest TeacherYeah, that's a buggy little fix, eh?