0

I stumbled upon a confusing issue while trying to customize the appearance of the front page of my blog (blog.example.com) without changing the behaviour of the other blog posts index pages (blog.example.com/page/3).

The problem is that I can't seem to find a way to add a template for the front page that doesn't affect the other list pages:

  • according to wphierarchy.com and to the rather confusingly worded codex entry, it looks like front-page.php is what I'm after, but if I provide that, the blog posts index pages are affected by it as well!

  • if I modify home.php, both the home page and the index pages are affected, as correctly documented

  • adding a custom page template and setting the front page to use a page with that template set doesn't work either! the index pages still end up calling the page-foo.php template

What am I doing wrong?

  • 1
    I don't get you on this. page/3 is simply page number 3 of blog.example.com and should by default use the same template as page one. This is a paged page, not a separate page – Pieter Goosen Jan 27 '15 at 18:42
  • 1
  • Thank you both, I see that I just completely misunderstood the entire thing! @PieterGoosen, if you post your comment as an answer, I will accept it. I think it's good to leave this question here as it might help anybody else who would be having the same confusion. Thanks! – UncleZeiv Jan 27 '15 at 23:35
  • Glad I could help. Posted my comment as an answer. Enjoy :-) – Pieter Goosen Jan 28 '15 at 4:18
1

You have this all wrong :-)

  • blog.example.com is page one

  • blog.example.com/page/3 is page number 3 of blog.example.com

So this not a new page, but a paged page. By default, this all pages in a paged sequence will use the same template as the first page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.