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 trialMichel van Essen
8,077 Pointsconfused about the answer of 'Write out the template tag that let's you echo out the title of a post or page'
the answer is 'the_title' however the WP Codex says 'Displays or returns the title of the current post' but our questions asks for the title of the post OR page. Is this some sort of Wordpress Colloquialism that states that a post is basically a page or am I missing something else?
Aaron Bolton
4,512 PointsAaron Bolton
4,512 PointsYes, a "Page" is a type of post. It can be a bit confusing at first, but WordPress states this: "WordPress can hold and display many different types of content. A single item of such a content is generally called a post...". Therefore, "Pages", "Posts", and "Attachments" are all examples post types in WordPress. The WP Codex page on Post Types is here: https://codex.wordpress.org/Post_Types