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 | |
wp_dropdown_categories( array( | |
'taxonomy' => 'category', | |
'multiple' => true, | |
'walker' => new Willy_Walker_CategoryDropdown(), | |
'selected' => array( 10, 12 ), // selected terms… | |
'hide_empty' => false, | |
) ); |
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 | |
/* build a new wp_query */ | |
$classes = new WP_Query( | |
array( | |
'post_type' => 'wpmark_class_time', // post type to query | |
'posts_per_page' => -1, // get all the posts not limited | |
'meta_query' => array( | |
'relation' => 'AND', | |
'day' => array( // give the first meta key array an array key | |
'key' => '_wpmark_day', |
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 | |
/*-----------------------------------------------------------------------------------*/ | |
/* Conditional Logic to Detect Various Event Related Views/Pages | |
/*-----------------------------------------------------------------------------------*/ | |
if( tribe_is_month() && !is_tax() ) { // Month View Page | |
echo 'were on the month view page'; | |
} elseif( tribe_is_month() && is_tax() ) { // Month View Category Page |