WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using a custom template as the posts page (3 posts)

  1. twe4ked
    Member
    Posted 4 years ago #

    Hey,

    I set up wordpress to use a static page (via settings>reading) for the home page ('welcome') and a page called 'blog' for posts, both of these pages use custom templates e.g. <?php/* Template Name: Blog */?>

    My problem is, blog is still using 'index.php'.

    TIA

  2. MichaelH
    Member
    Posted 4 years ago #

    According to Administration > Settings > Reading

    Posts page - Select in the drop-down box the name of the Page that will now contain your Posts. If you do not select a Page here, your Posts will only be accessible via other navigation features such as category, calendar, or archive links. Even if the selected Page is Password protected, visitors will NOT be prompted for a password when viewing the Posts Page. Also, any Template assigned the Page will be ignored and the theme's index.php will control the display of the posts (this may change in future releases).

    Review the Conditional Tags if you need to account for this 'feature'.

  3. twe4ked
    Member
    Posted 4 years ago #

    Thanks Michael, I ended up making a home.php file to pe used by the 'posts page'.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.