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.