Custom template for blog page and posts issue
-
I’m trying to create some themes where the sites are running the latest version WP 4.2.2
The sites will have a static Home page, with posts appearing on another page called “Blog”.
I want to have the home page (Index.php) show a slider where the header normally appears, with all other pages displaying a static header.
The problem I have is that although I have created a template page for use with a static header, this doesn’t work when applied to the Blog page or any of the post pages. ??
The Codex seems to suggest creating a template for blog page and posts called home.php, which I’ve done, but this is only partly successful.
As you can see from this url,
the blog page now show a static header, (which is good!) But it’s missing the metadata and navigation links for “Next post”. When clicking on links in the sidebar for Recent Posts, the slider now shows on each page!
Here’s a link for the code of my home.php https://pastebin.com/PgUUsq1G
It’s based on the template I made for the other pages, but I’m not really sure what I need to add in order to fix this issue.All I want is to show blog page and posts with a static header like all the other non home pages.
Can anyone advise?
- The topic ‘Custom template for blog page and posts issue’ is closed to new replies.