So I'm trying to write a conditional statement that will pull in two separate sidebars depending on an event category on the Single Event Page, but I'm having no luck. Any help would be appreciated and I'm willing to either do it by tag or category.
what I have right now looks like this this:
<?php if ( in_category( '18' ) ) : ?> <?php get_sidebar('apples');?> <?php else: ?> <?php get_sidebar('oranges');?> <?php endif; ?>
Thanks in advance.