Get Events where there are tickets available

Home Forums Ticket Products Event Tickets Plus Get Events where there are tickets available

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1019896
    mattconrad
    Participant

    Hi there,

    I’m using a standard query to get my events within a template as follows:

    <?php global $post;
    $events = tribe_get_events( array(
    'posts_per_page' => -1,
    'start_date' => new DateTime()

    ) );

    foreach ( $events as $post ) {
    setup_postdata( $post );

    ?>

    Is there a way to just get events where tickets are available to purchase (using Wootickets)?

    I’ve searched everywhere and can;t find a solution!

    Thanks in advance.

    Matt

    #1019992
    Brian
    Member

    Hi Matt,

    Thanks for using our plugins.

    I can try to help out here, but there is no solution right away to do this.

    There is no field to query by if an event has available tickets or not.

    You could query all the events and then modify the plugin Cliff Created here to only show event information if there is tickets available:

    How do i display how many tickets are left?

    I can try to answer some more questions about it, but limited in providing much support on it from here.

    Thanks

    #1075248
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Get Events where there are tickets available’ is closed to new replies.