Basic Query Question

Home Forums Calendar Products Events Calendar PRO Basic Query Question

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1008858
    Daniel
    Participant

    Hi there,

    I have, what I think, is a super basic question.

    I have a number of pages (literally page post types) that need to display events and one custom post type that needs to display events filtered through a custom taxonomy.

    I’ve set up the custom post type with a WP Query, assigned an argument for the category id and it works perfectly.. except I’m only displaying the event title. I’m thinking it would be much more efficient to query the events using your own “tribe_get_events”, but I’m not sure how to set-up the query. The listing should appear similar to your own “list” view.

    https://theeventscalendar.com/knowledgebase/custom-event-queries/

    My question is: What arguments will I need to pull in the venue data and other aspects associated with each event (cost, time, date etc)? Also, I specifically need the geo coding associated with each venue to be queried. Is the venue geocoded with Google geocoding i.e. the same format?

    If you point me in the right direction in your documentation, I’m sure I can figure this out..

    Thanks in advance!

    Dan

    #1009149
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    If you already have a query that gets the events that is going to be the same as tribe-get_events() as that query ends up using WP_QUERY.

    If you are looking to show event details I would suggest looking at your templates and pulling in functions from there.

    The single template is found here:

    plugins/the-events-calendar/src/views/single-event.php

    And then there are modules and meta templates found in these two directories.

    plugins/the-events-calendar/src/views/modules/

    plugins/the-events-calendar/src/views/modules/meta/

    All the functions to display any of the event information should be found there and all should work in the loop.

    Is that what you are looking for?

    Let me know if you have any follow up questions.

    Thanks

    #1014062
    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 ‘Basic Query Question’ is closed to new replies.