345 – WordPress Template Hierarchy
Announcements
Net Neutrality
WP Campus to Stream for Free
The Secret Lives of WordPress Pets
Is there a plugin for that?
With more than 48,000 plugins in the WordPress repository, it’s hard to find the perfect one. Each week, I will highlight an interesting plugin form the repository.
For more great plugins, download my 50 Most Useful Plugins eBook.
Meks Quick Plugin Disabler is used to quickly find out if any recent issue you are having on your website is related to the one of currently active plugins.
WordPress Template Hierarchy
The template hierarchy is the choice-structure WordPress uses to determine what file in the theme will be used to generate the full, final HTML for a given page of your WordPress website.
In looking to find the template to use to present all the posts for given author, let’s make that authors username “dustin” who has a numeric id of 3.
WordPress needs to know what file from your current theme to use. So here’s how it looks through your theme files:
Does the file author-dustin.php exist? No…
Does the file author-3.php exist? No…
Does the file author.php exist? No…
Does the file archive.php exist? No…
Does the file index.php exist? Yes!
For more details, please see:
Developers.WordPress.org
WPHierarchy.com
Thank You!
Thank you to those who use my affiliate links. As you know I make a small commission when someone uses my link and I want to say thank you to the following people. For all my recommended resources, go to my Resources Page
View on YourWebsiteEngineer.com
view more