Different Sidebar widget for all pages
-
I’m looking for a way to use different widgets in the right sidebar for different pages.
I tried using the custom field to choose sidebar template file (I have created a new template for the new sidebar) by inserting the following code in the pages.php file.
<?php $sidebar = get_post_meta($post->ID, "sidebar", true); get_sidebar($sidebar); ?>
However wordpress still uses the original sidebar.php file even though I till it to use another file.
Is there some way to use different widgets in the sidebar for different pages?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Different Sidebar widget for all pages’ is closed to new replies.