Home › Forums › Calendar Products › Events Calendar PRO › Page for Venues + Map
- This topic has 4 replies, 2 voices, and was last updated 8 years, 1 month ago by
atge.
-
AuthorPosts
-
February 27, 2018 at 9:16 am #1465048
atge
ParticipantI am looking to create a “Locations” page on my site based on the venue content in Events Calendar PRO. I understand that I can use a short code [list_venues] to display a bullet list of venues. I do not want to use the default “map view” of the event calendar as I need all venues to display, not just those with scheduled events.
Question 1:
Per https://theeventscalendar.com/knowledgebase/listing-venues-and-organizers/ I know that I can filter the [list_venues] shortcode by “exclude”, “order”, and “orderby”. Are there other filters that can be used with the [list_venues] shortcode? (If so, what are they?) For example, if I have added a custom field “region”, I know that I can order by region, but is there a way to filter by the custom field, for example with the logic: [list_venues region=”Asia”]Question 2:
Is there a way to add additional information to each entry in the venues list? Current it appears that only the name of the venue can be displayed. I need to add content such as city, country, contact info, etc.Question 3:
Is there a straightforward way to incorporate a map view into the venue list? I want my “Locations” page to show a map of all venues, and then list the venue names and info as well. Of course there are other plugins that do this, but I would like to utilize my events calendar venue info as the “source of truth” without the need to populate another database for this view.February 28, 2018 at 1:31 pm #1466487Andras
KeymasterHi atge,
Wow, amazing questions there!
The short of it: all that should be possible, if not straight out of the box then with some custom coding.
Are there other filters that can be used with the [list_venues] shortcode?
No, these are the only ones for the time being.
if I have added a custom field “region”, I know that I can order by region
If you tested this and it works, that’s awesome!
is there a way to filter by the custom field, for example with the logic: [list_venues region=”Asia”]
I looked through the code of the plugin and there is no indication that this would be possible.
Is there a way to add additional information to each entry in the venues list? Current it appears that only the name of the venue can be displayed. I need to add content such as city, country, contact info, etc.
This should be possible. You would need to edit the plugin and add some code for this, between lines 65 and 86. You can use these functions there:
- https://theeventscalendar.com/function/tribe_get_venue_single_line_address/
- https://theeventscalendar.com/function/tribe_get_venue_details/
- https://theeventscalendar.com/function/tribe_get_venue_website_url/
Is there a straightforward way to incorporate a map view into the venue list?
I’m not quite sure there is. You would need to dig into the Google Maps API. In the calendar plugins we don’t have a function that would let you easily show a map with custom address pins.
Give me some time for this, I’ll ask the team if there is something that can be done for the map.
You also might want to check out this plugin and see if it helps in any way: https://wordpress.org/plugins/the-events-calendar-shortcode/
Cheers,
AndrasFebruary 28, 2018 at 1:49 pm #1466495Andras
KeymasterJust got word that the list venues and organizers plugin will receive an update soon with some more functionality. I cannot confirm yet what functionality and when exactly as it’s currently being evaluated.
A.
March 22, 2018 at 9:35 am #1486100Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Page for Venues + Map’ is closed to new replies.
