Reputation: 305
Is it possible to define a different 'Default Template' for each parent section on a website? On each page I have 3 images in the sidebar. I want these 3 images to change depending on what section the user is viewing.
How would I achieve this?
Upvotes: 1
Views: 53
Reputation: 7478
You can define a completely custom Template Hierarchy by filtering 'template_redirect'.
http://phpxref.com/xref/wordpress/wp-includes/template-loader.php.source.html
Upvotes: 0
Reputation: 146302
You can make a template to fit in all of the options that you want on each page.
Something like an MVC might fit your needs as it seperates the templates from the backend code.
Upvotes: 2