Use custom page template when clicking on post subjects
-
I’m trying to use different page templates when my visitors click on the post topic and the isolated post is displayed. Let’s say I have two posts – one is a blog post and one is a business post. I want to use a different page template depending on the post (let’s say both have different sidebars, one specific to blog posts, one for business stuff).
As far as I can tell, the functionality goes through the_permalink(), and WP defaults to index.php as the page template for the isolated post. I guess I would look making a new version of the_permalink and pass in a parameter that helps the function decide which page to use. Any pointers, tips or examples as to how to modify this?
- The topic ‘Use custom page template when clicking on post subjects’ is closed to new replies.