Support » Themes and Templates » Posts Page getting wrong custom template

  • Resolved piratepaul


    Ok, so this is my first time using WP as a CMS and blog platform in the same install.

    My problem relates to using templates, and is this:

    I created 3 templates within my theme (one for the home page, one for the posts page, and one for everything else) everything works fine except that the posts page seems to want to use a template that I have not assigned to it.

    The templates display fine in the drop down from the Write Page page.(as far as I can tell, I used the standard method of creating custom templates


    Template Name: postspage


    The problem persists even when I change the posts page. basically, I can’t seem to assign a custom template to the page with the posts, the custom template doesn’t “stick”!

    The site can be viewed here:

    Thank you so much for any help


Viewing 6 replies - 1 through 6 (of 6 total)
  • Same problem here. In my case it worked at first. Then I moved the site to another server/domain name and upgraded to WP2.5 and now template wont stick for the posts page. I’ve checked all settings over & over again but can’t find the problem.

    Did you want the custom template to be your front page (where all the posts are listed in chrono order? If so, you need to edit your index.php file. If you want them on single posts, edit your single.php file, on archive posts, archive.php and so forth. You created a Page template, not a custom post template. Pages lie OUTSIDE post hierarchy so that’s why the custom page template wasn’t being applied. Does this make sense?

    You can use conditional statements to make things look just about any way you want. Read about those here:

    I solved the problem on my site by removing the home.php template. Doing so allowed the custom template to take hold on the posts page.

    B.t.w. I have WP setup as a CMS so front page is a WP page – no posts.

    piratepaul – this may be the way you have it to – so try removing home.php (or you can rename it to a different name e.g. homepage.php)

    Wow, conditional tags seriously rock. Thats all I have to say!
    Thanks Joni.

    Thank you acurran!
    I have two “identical” sites, but two different languages. Couldn’t figure out why the swedish one worked and not the english. Of course my template was called home.php on the english site. I used swedsih for “home” on the one that worked and therefore it didn’t conflict.

    I was just about to reinstall the whole english wp, when I found this thread.
    Thanks a lot!!!

    The home.php issue messed me up a while back and I couldn’t figure out why. Now I realize it’s because home.php is a reserved name.

    I just found this list of reserved template names, FYI

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Posts Page getting wrong custom template’ is closed to new replies.