• Home
  • Contact Me
WordPress Tavern
Where Every Drink Is On The House
Browse: Home / Great Explanation Of Theme Template Pages

Great Explanation Of Theme Template Pages

By Jeffro on May 20, 2009

wphackslogoJohn Pratt over on WPHacks.com has published a great guest post explaining the ins and outs of WordPress Theme Template Pages. These pages are what make up a WordPress theme. Although most theme designers end up doing things their own way, it’s a good idea to figure out the basic flow of a theme in case you want to make one yourself or add template pages to your current theme.

Every time a WordPress page is called the WP ‘engine’, if you will, determines (through process of elimination) what kind of page it is. It’s kind of like a “where am I?” function. WordPress says “what page am I…” and in turn tries to call pages in a specific order. If WP doesn’t find the PHP file it needs it just defaults to the “index.php” file and uses it instead.

If you’re an aspiring theme author, definitely give this post a read, print it off actually and use it as a reference.

Share this:

  • Email
  • Facebook
  • Reddit
  • Twitter
  • Google +1

Posted in Themes | Tagged hacks, pages, templates, Themes

« Previous Next »

Related Posts (YARPP)

  1. Innovative Use Of Private Pages
  2. Comparisons Between Most Popular Theme Frameworks
  3. BuddyPress Releases Skeleton Theme
  4. Theme Repository In Need Of An Upgrade?
  5. P2 Officially On The Theme Repository
© Copyright WPTavern 2013 All rights reserved About / Poll Archive / Site Archive // Powered by WordPress Mtn. Dew And Hybrid
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.