Simply having [ESPRESSO_TICKET_SELECTOR] on the event page doesn’t seem to work, so it looks like I need to set it up as
Which event page?
Do you mean within the event description itself? That should work without the id.
The event_id will be the post id, EE checks if you have a current espresso_events post and will use the id from that without the need to set the id in the shortcode. However it depends where you are using it.
If you within the single-espresso_events.php template file you don’t want to use the shortcode, you can use the espresso_ticket_selector() function.
Take a look within /event-espresso-core/public/Espresso_Arabica_2014/content-espresso_events-tickets.php to see an example of how you can use it within the loop.
<?php espresso_ticket_selector( $post ); ?> is used to output the ticket selector.
The div is a wrapper that template uses to style the TS.
Viewing 3 reply threads
The support post ‘Get event ID’ 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.