Home › Forums › Welcome! › Pre-Sales Questions › Filter event
- This topic has 2 replies, 2 voices, and was last updated 8 years, 5 months ago by
Support Droid.
-
AuthorPosts
-
October 30, 2017 at 1:30 am #1371212
stéphanie
GuestHi,
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();
?>
October 31, 2017 at 6:30 am #1372050Jaime Marchwinski
KeymasterHi Stéphanie,
Thanks so much for reaching out!
Would you mind expanding on what you are trying to achieve? We are limited by what we can assist with as far as customizations go, as per our Support Policy, but I’d love to help to point you in the right direction.
Also, if you are using our free Events Calendar plugin, please post this question in our WordPress.org support forum and we will respond there instead.
Let me know if there’s anything else we could assist you with!
Thanks,
Jaime
November 22, 2017 at 8:35 am #1389098Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Filter event’ is closed to new replies.
