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 How WordPress Templates Work Common WordPress Template Code

Karin de Vries
Karin de Vries
3,267 Points

Post Formats, not Custom Post Types

This is for Zac Gordon: At the end of this video you're referencing Custom Post Types, but in actuality you're referencing Post Formats. Right? This is very confusing when you do a compare on the information you shared and the WordPress Codex.

3 Answers

Ryan Field
Ryan Field
Courses Plus Student 21,242 Points

Just tagging Zac Gordon so maybe he has a better chance of seeing this. :)

This seems to still be a relevant question and if there's an answer for it I'd love to hear it!

Both custom post types and post formats can be used when naming templates. For example, if you had a custom post type called "Books", you would name the file "content-books.php".