Support » Themes and Templates » How do I display Posts to a specific PHP page?

  • I have created a posts page called blog.php and a page in Pages called blog.html – I have added
    Template Name: Blog
    to the top of blog.php and selected “Blog” as my Posts Page in the Dashboard – but the posts still default to index.php – how can I get blog.html to use blog.php as my Blog home page?


Viewing 2 replies - 1 through 2 (of 2 total)
  • After a lot of experimentation naming and renaming php pages and seeing what loads I have determined that…

    …the only way to assign a Page created in Pages to display posts is to turn Set Posts page OFF (- select -), otherwise it will use the Posts will use the hierarchy. Assigning a named page in Set Posts page will fall back to using index.php, page.php or single.php instead of a page created in Pages.

    Furthermore you can’t use a name like blog or WP will default to it’s own template and give weird results i.e. even when I renamed single.php single3.php it defaulted to that file and when I removed single3.php I discovered WP bypassed my blog.php file for its own template – as soon as I named the file something else it worked.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I display Posts to a specific PHP page?’ is closed to new replies.