1

I am trying to set a custom template for my blog posts page using the Template box on the Page Attributes section of the page.

However, the template does not get used on the site.

Is there a certain reason why or maybe a special process I need to go through to get a custom template to be used for the blog posts? Could it be the theme is overriding the custom page somehow?

Structurally the template is fine and appears as one of the template selections in the pulldown box.

Here are screen shots:

This is from Settings enter image description here

This is from the "Blog" Page Attributes:

enter image description here

1
  • The post post type doesn't normally have the templates meta box that the page post type has. Can you verify this isn't something added by the particular theme you're using? See the Template Hierarchy page to see how WordPress loads templates, note that posts don't have the custom template entry that pages have.
    – Milo
    Commented Jun 12, 2014 at 20:41

1 Answer 1

1

As I understand it, you can't use Page Templates that way; you need to edit your index.php file instead.

See this chart for more detail on how the hierarchy works and this post for a detailed explanation. By specifying "Blog" as the "posts page" on the Settings > Reading tab, you are telling WordPress "this is posts display area" which falls under the "Home Display" hierarchy and no longer falls under the Page Display hierarchy.

This allows you to have the page you've designated as the blog-page listed in menus and such, but it doesn't really act like a Page in any other ways. As I understand it. :)

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.