$("progadi").on("change", function() { var val = $(this).val(); // put the val in other field $("strata").val(val); });
@param WP_Query $query*/function tribe_force_event_date( $query ) { if ( tribe_is_event() ) {$taxquery = array( array( 'taxonomy' => 'tribe_events_cat', 'terms' => array( 55 ), 'operator' => 'IN' ) ); $query->set( 'tax_query', $taxquery ); } else { $taxquery = array( array( 'taxonomy' => 'tribe_events_cat', 'terms' => array( 55 ), 'operator' => 'NOT IN' ) ); $query->set( 'tax_query', $taxquery ); } // return $query;}add_action( 'tribe_events_pre_get_posts', 'tribe_force_event_date' );
Here is Google Map Filter Api Example:
@param WP_Query $query
ReplyDelete*/
function tribe_force_event_date( $query ) {
if ( tribe_is_event() ) {
$taxquery = array(
array(
'taxonomy' => 'tribe_events_cat',
'terms' => array( 55 ),
'operator' => 'IN'
)
);
$query->set( 'tax_query', $taxquery );
}
else
{
$taxquery = array(
array(
'taxonomy' => 'tribe_events_cat',
'terms' => array( 55 ),
'operator' => 'NOT IN'
)
);
$query->set( 'tax_query', $taxquery );
}
// return $query;
}
add_action( 'tribe_events_pre_get_posts', 'tribe_force_event_date' );