Hi,
Excuse for my english..
I would like to add the category with my code next.
Do you have a issue please ?
Thanks of lot.
See you bye
$events = tribe_get_events( array(
$args = array(
‘nopaging’ => true,
‘post_type’=>’tribe_venue’,
‘meta_query’ => array(
array(
‘key’ => ‘_VenueCity’,
‘value’ => array( ‘Frankfurt’),
‘compare’ => ‘IN’
)),
‘tax_query’ => array(
array(
‘taxonomy’ => TribeEvents::TAXONOMY,
‘post_status’=>’publish’,
‘field’ => ‘id’,
‘terms’ => ‘Sport’
))
)));
$city_venue = get_posts( $args );
$venue_ids = wp_list_pluck( $city_venue, ‘ID’ );
wp_reset_postdata();
$upcoming = new WP_Query( array(
‘post_type’ => Tribe__Events__Main::POSTTYPE,
‘meta_query’ => array(
array(
‘key’ => ‘_EventVenueID’,
‘value’ => $venue_ids,
‘compare’ => ‘IN’,
)
),
‘paged’ => $paged
) );
if( $upcoming->have_posts()) :
while( $upcoming->have_posts() ): $upcoming->the_post();
echo ‘
‘ . $upcoming->post->post_title . ‘
‘;
endwhile;
wp_reset_postdata();
else :
echo ‘No posts found’;
endif;
die();
?>