Skip to content

Instantly share code, notes, and snippets.

@jo-snips
Created March 9, 2012 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jo-snips/2004566 to your computer and use it in GitHub Desktop.
Save jo-snips/2004566 to your computer and use it in GitHub Desktop.
The Events Calendar: Force View in Specific Category
<?php
if (is_tax('tribe_events_cat', 9)) {
// Thus, if its a category, pull template 'list'
include(tribe_get_current_template('list'));
} else {
// If not a category, pull default set in options
include(tribe_get_current_template());
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment