Posted: June 13, 2020 at 7:07 am
I am using a basic event list page that shows all upcoming events: http://opendialogueapproach.co.uk/events/
I am wondering if it is possible to include information about the number of tickets still available for each event on this page.
You could just set the event list to include the ticket selector, your current function should then show the remaining tickets there.
Event Espresso -> Events -> Templates (tab) -> Event list pages (section) -> Display Ticket Selector.
Set that to Yes and it should display on the above output.
Thanks Tony. I have a couple of questions:
1. Is the only way of showing information about remaining tickets within the ticket selector? As I only want to show something like “There are x spaces left for this event” and not show all of the tickets, I would have to use CSS to hide most of the ticket selector div in the events list page. If this is the only way to do so, I can of course do this, but just thought I’d check.
2. When I enable the option to show the ticket selector on the events list page, it only shows if I remove my custom template for archive-espresso_events.php. These are the templates I have in my child theme folder. I am not sure which one I need to edit to have the option of showing the ticket selector:
No, it’s not, but your custom function hooks into a hook fired on the ticket selector.
You can use another hook or create a shortcode.
Where exactly do you want the output to be on each event there?
So, because you are using an
We can touch on this shortly as it depends what you do with regards to the above.