Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,241 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".