Functions not working in custom query

Home Forums Ticket Products Event Tickets Plus Functions not working in custom query

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #243805
    Theunis
    Participant

    Hi there, I’m trying to set up a new custom query and use the tribe functions to get the meta data. I’ve structured my query as instructed on https://theeventscalendar.com/queries-and-pagination/. When I run the_title(), the title of the event comes up correctly, but using tribe_events_title() returns the containing page’s title. Also when I run something like tribe_get_meta( ‘tribe_event_venue_name’ ), nothing is returned. How do I get the post data to be loaded so that these functions work?

    #244004
    Theunis
    Participant

    It seems that upon the first bit of testing I used functions that didn’t return values. I have managed to get most of the information I need. I need to, however, be able to load the tickets as objects, from this loop. How do I go about this?

    #244043
    Theunis
    Participant

    Okay, even another update: I have gotten to:
    $wootickets = TribeWooTickets::get_instance();
    $ticket_ids = $wootickets->get_Tickets_ids( get_the_ID() );
    $ticket = $wootickets->get_ticket( $ticket_ids[0] );
    var_dump($ticket);

    This produces an empty TribeEventsTicketObject. However, the ticket is created in the Woocommerce Products tab. Any idea what could be wrong?

    #245456
    Casey D
    Member

    Hello limbik,

    We typically are unable to do this level of customization on the forums, just because of the time and complexity involved.

    If you could give me more information though, I may be able to at least point you in the right direction.

    Could you describe to me what you are ultimately trying to do? Where does this query fit into it? Without context I’m sorta stuck :/

    Could upload all the code you have so far to a service like pastie.org?

    Does this make sense? Let me know how I can help!

    Cheers!

    – Casey Driscoll

    #367167
    Casey D
    Member

    Hello limbik,

    We typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.

    Cheers!

    – Casey Driscoll

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Functions not working in custom query’ is closed to new replies.