Home › Forums › Calendar Products › Events Calendar PRO › Basic Query Question
- This topic has 2 replies, 3 voices, and was last updated 10 years, 6 months ago by
Support Droid.
-
AuthorPosts
-
September 25, 2015 at 2:24 pm #1008858
Daniel
ParticipantHi 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
September 28, 2015 at 6:35 am #1009149Brian
MemberHi,
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
October 13, 2015 at 7:05 am #1014062Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Basic Query Question’ is closed to new replies.
