Can i add a query parameter to only show events from specific organiser?

Home Forums Ticket Products Eventbrite Tickets Can i add a query parameter to only show events from specific organiser?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #967516
    Jon
    Participant

    I would like to accomplish the following – our site will show two sets of events on our home page that we want to be separated by organizer, so Organizer 1 events AND Organizer 2 events on the same page, but in separate loops. Can someone help me do that?

    Also I am unable to see any ticket buying options (I have configured and imported events successfully from eventbrite).

    #967538
    Jon
    Participant

    I figured it out using a meta query:
    `wp_reset_postdata();
    $upcoming = new WP_Query();
    $upcoming->query(
    array(
    ‘post_type’=> ‘tribe_events’,
    ‘eventDisplay’ => ‘list’,
    ‘posts_per_page’ => 10,
    ‘paged’ => $paged,
    ‘meta_query’ => array(
    array(
    ‘key’ => ‘_EventOrganizerID’,
    ‘value’ => array(‘11111’),
    ‘compare’ => ‘IN’,
    ),
    ),
    )
    );

    if ($upcoming->have_posts()) :
    while ($upcoming->have_posts()) :
    $upcoming->the_post();

    #967543
    Brian
    Member

    Hi,

    Glad you found the query.

    As for the ticket issue it is best to take care of that here as well.

    We can deal with that in your post here:

    Don't see anywhere to buy tickets

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Can i add a query parameter to only show events from specific organiser?’ is closed to new replies.