Created
March 9, 2012 01:49
-
-
Save jo-snips/2004566 to your computer and use it in GitHub Desktop.
The Events Calendar: Force View in Specific Category
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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