Skip to content

Instantly share code, notes, and snippets.

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 jonahcoyote/2992392 to your computer and use it in GitHub Desktop.
Save jonahcoyote/2992392 to your computer and use it in GitHub Desktop.
The Events Calendar: Basic Conditional Wrappers
if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
} elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
} elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
} elseif( tribe_is_event() && is_single() ) { // Single Events
} elseif( tribe_is_day() ) { // Single Event Days
} elseif( tribe_is_venue() ) { // Single Venues
} elseif( tribe_is_upcoming() || tribe_is_showing_all() || tribe_is_past() ) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment