scenario
I have one custom post type: events
Two custom taxonomies: future events & past events - both displaying posts using single-events.php
I need a way of having a different sidebar for :
1.future events
2.past events
I need something along these lines:
If custom post "event" & custom taxonomy "future event" then show sidebar 1
else
if custom post type "event" & custom taxonomy "future event" then show sidebar 2
heres where I am upto with code:
elseif ( get_post_type() == 'events') {
if ( function_exists('dynamic_sidebar') ) dynamic_sidebar(1);
}
elseif ( get_post_type() == 'events') {
if ( function_exists('dynamic_sidebar') ) dynamic_sidebar(2);
}
Please help?