Thanks in advance for any advice you can provide. I am attempting to display the number of tickets available in the event description using the following code:
I have a recurring event and need the event_id to refer to the event being viewed. Do I need to go through each of my events and alter the “1” to reflect the event ID or is there code to make that tag refer to the event being viewed.
Basically, I want to avoid having to edit each description with the event ID #.
If you want to avoid editing each and every event then you will need to dig into the code a little bit.
Basically in the registration_page_display.pph file which is located in the event-espresso/templates folder you can edit this to add in the following
This will then display the available spaces in the registration page for each event automatically.
It is advisable to copy the registration_page.php and registration_page_display.php files (you need to do both) to wp-content/uploads/espresso/templates and edit the file there. That way the changes will not be over written on updates.
Thank you Dean. I must admit that I am not super familiar with editing php files. Is there a specific location within the code that the snippet you provided must be added?
Not really no, it depends on where you want the count to display. If you are unsure then I would advise getting a web developer to help you out or a service such as Tweaky.
Heres a small example where I have added it below the dates but above any prices http://d.pr/i/972R
Viewing 3 reply threads
The support post ‘How to display the # of tickets available for a recurring event.’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.