I have a custom post type 'speakers' and I have a checkbox custom field (meta_query) to separate my Conference speakers from my Workshop speakers.
I can filter my speakers with this meta_query and things are working fine. But how do I use a different sidebar based on the Conference or Workshop speaker meta_query?
When I click the speakers for their detail (no matter Conference or Workshop speaker) the detail page loads my single-speakers.php and the code to get the sidebar in my single-speakers.php is:
<?php get_sidebar(); ?>
How can I specify a different sidebar, for example get_sidebar('workshop')? Can I write a conditional code to load a different sidebar based on the speakers meta_query? Does this make sense?
Thanks