Filter event

Home Forums Welcome! Pre-Sales Questions Filter event

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1371212
    stéphanie
    Guest

    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();

    ?>

    #1372050

    Hi 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

    #1389098
    Support Droid
    Keymaster

    Hey 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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Filter event’ is closed to new replies.