Hi,
I wanted to use the ESPRESSO_TICKET_SELECTOR shortcode within an event page so that I can display the ticket selector within the body of the event description rather than at the top or bottom of the page. I am able to use the shortcode if “Display Ticket Selector” for the event is set to yes. But then the selector shows up twice. Is there a way to turn off the automatic display of the ticket selector and still be able to use the shortcode within the body of the event description?
You can add the above to a functions plugin or into your WordPress theme’s functions.php file.
The code sets a flag the first time the ticket selector is displayed, and then it checks to see if the flag is set. If the flag is set, it tells EE to not display the ticket selector again.
The support post ‘using [ESPRESSO_TICKET_SELECTOR]’ 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.