WordPress Theme Files Execution Hierarchy

As you know I also write for the wp tuts site which is great resource for the wordpress development. Yesterday they have published my one of the article for very useful infomation in wordpress theme development.

Here are some excepts from that article:

This article will show the WordPress theme file execution hierarchy. In short, we’ll look at which files get served up when you load a page in WordPress. You might already know that detail post is served by single.php and detail page is served by page.php, but WordPress will search for different files depending on a variety of factors, so we’ll be looking at how this works!

First thing we should establish is this: without index.php and style.css your theme is no longer a valid WordPress theme… so it stands to reason that if all you have is those two files, each page will you try to load will be served up by index.php.

This article cover the execution hierarchy of the below page types:

  1. Home Page
  2. WordPress Post Detail
  3. WordPress Page Detail
  4. Category Page
  5. Tag Page
  6. Taxonomy Page
  7. Author Page
  8. Attachment Page
  9. Date Page
  10. Archive Page
  11. Search Page
  12. 404 Page

Read Full Article

About the Author: Avinash

Experienced full stack freelance web developer with a track record of producing excellent results for 11+ years. Excellent communication and collaboration skills, managing with a team of 20+ people. I’m motivated to make a positive impact on your revenue through the customer web portal development project.

One Comment

  1. […] This article will show the WordPress theme file execution hierarchy. In short, we’ll look at which files get served up when you load a page in WordPress.    PHP Read the original post on DZone… […]

Leave A Comment

FREE QUOTE

Do you need help with services? Request a free quote to get in touch.