Forums

WP 2.7 Problem with blog page using home page template (2 posts)

  1. robinqld
    Member
    Posted 3 years ago #

    Hi, I'm developing a site on my localhost using a static home page with several other static pages using a different custom template for each. That's all ok. When I added a blog / news page to display news posts it always uses the home page template. I've assigned it the custom template in the Attributes section, but it still uses the homepage template.

    Has anyone else seen & solved this issue?

    Thanks for any help.

  2. Carmen Becker
    Member
    Posted 3 years ago #

    Hi robinqld,

    I had exactly the same problem. The mistake I made was to name the template file for my homepage "home.php". Perhaps you did the same?

    Check here: http://codex.wordpress.org/Creating_a_Static_Front_Page. There it says: "you must NOT name your home page template file "home.php"".

    Don't ask me why. I am completely new to CSS and php. But after renaming my homepage template file everything worked well.

    Best,
    Carmen

Topic Closed

This topic has been closed to new replies.

About this Topic