Forums

Posts page won't take a template (4 posts)

  1. intellivision
    Member
    Posted 1 year ago #

    It insists on taking on the Home template. I've tried setting it to default and a special template. No dice.

    COINCIDENTALLY, the static home page is set to the Home template. Hmmmm.

    Index page
    http://thegasgun.com/
    Posts page
    http://thegasgun.com/?page_id=192

  2. yoshi
    Member
    Posted 1 year ago #

    Index page uses the Page template you specified in the editing page.

    Posts page uses the home.php or index.php, regardless which Page template you choose for the page.

    Think this way - the Posts page(page_id=192) exists only for the purpose of defining a URL to the latest posts page. So what you see on http://thegasgun.com/?page_id=192 not really is a Page#192 but a non-static front page.
    is_home() is true, is_page() is false, and it uses home.php template.

  3. intellivision
    Member
    Posted 1 year ago #

    Ok, let me try some changes and I'll get back to this thread.

  4. intellivision
    Member
    Posted 1 year ago #

    Yup, that worked. I made a special template for home (a dupe of its old template), and changed the old template the way I wanted it to look for displaying blog posts. Thanks Yoshi.

Topic Closed

This topic has been closed to new replies.

About this Topic