Assigned page in reading settings for posts not using the correct template? (3 posts)

  1. WordPress Explorer
    Posted 7 years ago #

    Hi guys,

    I've used the reading settings to set up a static front page and a blog posts page to show the latest entries, the front page displays correctly.

    It uses the custom page template I've used, but for the blog posts page...which is also a custom page template WordPress doesn't recognize the template for some reason, it uses Index.php instead.

    Template Name: Blog Front Page

    Even though I've used the above snippet at the top of the code in the custom template for the blog page?

    I'm confused why WordPress doesn't want to accept the blog page template and uses Index.php instead.

    Is it because the Readings settings doesn't accept a custom template for a blog posts page?

    That would be odd though because it does accept a custom template for the home page.

    Something isn't right and I can't put my finger on it, your help is much appreciated.

  2. Clicknathan
    Posted 7 years ago #

    Yes, your main blog page will use index.php. The Page templates are only for Pages. In this case, the "Page" you've assigned your blog to isn't actually a Page at all, but just a placeholder for your blog.

    So you'll need to edit your index.php file to do what you want, not try and use the Page template.

  3. WordPress Explorer
    Posted 7 years ago #

    Okay thanks! :)

Topic Closed

This topic has been closed to new replies.

About this Topic