WordPress: How to serve the same content with a different template based on URL

Long short of it is this: if you go to mysite.com/blog, you see the blog landing page, which uses the index.php template in my theme. However, I want to be able to go to mysite.com/blog-content and get all the same content, but using my page-blog-content.php template in my theme.

How can this be done?

Read More

Thanks in advance!

* EDIT *

To clarify, I’m trying to have two different URLs, /blog and /blog-content load the same content; specifically, the blog landing page. The only difference between those two URLs should be the template they use. I have two templates in my theme ready to go, I just need to make /blog-content mirror /blog and direct it to use my page-blog-content.php template.

Related posts

Leave a Reply

2 comments

  1. There’s heaps of options available, but (I think?) your question is too broad to answer specifically.

    In general, you can select a specific template for a given page/post (from within the page/post edit screen).

    Otherwise, you can create a specific template that is selected, based on its filename, for a certain slug, category, etc…

    Refer here: WordPress Codex -> Template Hierarchy

    Hope this helps!