WordPress Theme Development

  1. The Template Hierarchy
    1. Understanding How WordPress Selects Template Files
      1. Request Types and Template Selection
        1. The Hierarchy Decision Tree
          1. Visualizing the Template Hierarchy
            1. Template Loading Order
            2. Key Hierarchy Levels
              1. Site Front Page
                1. front-page.php
                  1. home.php
                    1. Static Page vs Blog Posts Page
                    2. Single Content
                      1. single.php
                        1. single-{post-type}.php
                          1. single-{post-type}-{slug}.php
                          2. Pages
                            1. page.php
                              1. page-{slug}.php
                                1. page-{id}.php
                                  1. page-{template}.php
                                  2. Archives
                                    1. archive.php
                                      1. archive-{post-type}.php
                                        1. category.php
                                          1. category-{slug}.php
                                            1. tag.php
                                              1. tag-{slug}.php
                                                1. author.php
                                                  1. author-{nicename}.php
                                                    1. date.php
                                                    2. Search Results
                                                      1. search.php
                                                      2. 404 Not Found
                                                        1. 404.php
                                                        2. Attachments
                                                          1. attachment.php
                                                            1. {mimetype}.php
                                                            2. The index.php Fallback
                                                            3. Overriding and Customizing Templates
                                                              1. Template Specificity Rules
                                                                1. Creating Custom Templates