Forums

Changing a page template changed my blog page? (2 posts)

  1. lindsayanng
    Member
    Posted 2 years ago #

    This is strange. I have my site set as a static page for the home page and then created a page named BLOG to display a normal blog page (content in chronological order like I might expect from a normal blog)

    I added a new page template (i have done this many times) called home (home.php) and then applied that page template to JUST my home page in the wordpress admin.

    I assumed that doing this would only change the way that the home page displayed, but now (for some reason) the blog page is acting weird. The blog is still using the default page template, so that is not my problem.

    I am playing with the get_excerpt for only the home page, which seems like it MIGHT be the issue..but I am still new at using the except function. Does adding content to the excerpt field automatically add excerpts to the blog page? Whats going on here?

    You can see by going here that I have my home page template with some testing text and then two excerpts which are pulling from a specific category (that is all working as I expect)
    HOME PAGE
    But if you click on the blog page, you are seeing something really odd (the entire most recent post and then two excerpts from posts within the same cagegory)

    The strange thing is, where in the world is the blog page thinking it needs to do this? The ONLY place I added the get category and excerpt code is on the home.php page template I created

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    "home" is a reserved filename. Try changing the name of your custom template file to something like "home-template.php".

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.