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!

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

PHP How to Build a WordPress Theme WordPress Theme Functions Displaying Custom Posts and Fields in a Template

Correlation

What does Setting -> Reading Front Page and Post Page drop-downs have to do with the template hierarchy? Does changing these setting negate any of the Template Hierarchy workings. If so in which way? Thanks

1 Answer

Julian Price
Julian Price
11,760 Points

I believe if Front-Page.php does not exist nor does Home.php exist it defaults to Index.php. Changing the reading setting allow you identify which page represents your Home Page in example Full Width Template it also acknowledges that page as the entry page so that the published home page has: mydomainname.com instead of mydomainname.com/home

Front Page was introduced to allow a Static Page instead of the most recent blog post or most often now a combination of both.

I hope that helped. Maybe others have a better answer because I am still learning as well.