Home › Forums › Calendar Products › Events Calendar PRO › Adding Venues, Featured image Thumbnails, & available tickets on Monthly View
- This topic has 8 replies, 2 voices, and was last updated 8 years, 1 month ago by
Mike.
-
AuthorPosts
-
February 21, 2018 at 12:32 am #1459489
Mike
ParticipantI’d like to present the monthly view events data as follows:
- Thumbnail Featured image
- Venue
- Event Title
- Available: # (available tickets)
- Single Event Link
Questions:
- Can you provide a snippet to pull the above fields for the current build of TEC?
- If not, what are the fields for all of these items. For example, the_post_thumbnail, tribe_get_venue, tribe_event_link from the old version of TEC.
- If we are caching the monthly view, is there still a way to have dynamic ticket availability show? basically, to exclude a PART of the page from the cache?
Thanks!
February 22, 2018 at 9:52 am #1461163Jaime Marchwinski
KeymasterHi Mike,
Thanks so much for reaching out!
Just to let you know, we are limited by our Support Policy in how much we can help with customizations, but I will try to point you in the right direction.
To clarify, are you looking to create a custom template that reorders the way things display?
If so, I’d recommend taking a look at the single-event.php template and making a copy of it and editing it to suit your needs. Our Themer’s Guide can walk you through this process.
As far as caching goes, if you are caching the month view, your ticket availability should still update properly. Are you seeing something different?
Let me know!
Thanks,
Jaime
February 22, 2018 at 11:21 pm #1461698Mike
ParticipantI’m talking about editing the monthly calendar view, so that it shows the following information in flat view (not in popup)
Thumbnail Featured image
Venue
Event Title
Available: # (available tickets)
Single Event LinkAt the very least, can I get the field names of the above fields?
As for the caching question, my question is specific to the monthly view. If we are showing the available # of tickets and the monthly view and caching the page, will it show accurate seat numbers?
February 22, 2018 at 11:22 pm #1461699Mike
ParticipantFor example, I believe this is the query for the available ticket numbers:
https://theeventscalendar.com/function/tribe_tickets_get_ticket_stock_message/
February 23, 2018 at 10:13 am #1462236Jaime Marchwinski
KeymasterAh okay, I see. The template you will want to edit is the single-event.php template.
Thumbnail Featured image: tribe_event_featured_image
Venue: tribe_get_venue
Event Title: get_the_title
Available: # (available tickets): tribe_tickets_get_ticket_stock-message
Single Event Link: tribe_get_event_linkYou can find a full list of available functions here as well:
https://theeventscalendar.com/functions/
I hope this helps, let me know how it goes!
Thanks,
Jaime
February 27, 2018 at 3:39 pm #1465397Mike
ParticipantI still need to know if this is going to cause caching issues:
As for the caching question, my question is specific to the monthly view. If we are showing the available # of tickets and the monthly view and caching the page, will it show accurate seat numbers?
February 28, 2018 at 4:59 am #1465798Jaime Marchwinski
KeymasterHi Mike,
Since this is a customization that you are creating, I cannot guarantee that things will work as expected. This is not how we had things set up by default to work, but you are welcome to give it a try and see how it goes.
With adding in the available tickets to month view, I would imagine that it will update properly, but again cannot guarantee it, as this wasn’t the original intention for the plugin.
I hope that helps!
Thanks,
Jaime
March 22, 2018 at 9:35 am #1486028Support 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 ‘Adding Venues, Featured image Thumbnails, & available tickets on Monthly View’ is closed to new replies.
