How to show sidebar on some posts and not others?
-
I found this code –
<?php $sidebar = get_post_meta($post->ID, "sidebar", true); get_sidebar($sidebar); ?>
for showing a particular sidebar per post using custom fields, which is good, but is it possible to show a sidebar on some posts and not others? And if so, how can I do that? Thanks.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘How to show sidebar on some posts and not others?’ is closed to new replies.