Support

Home Forums Event Espresso Premium shortcode for ticket selector for current event?

shortcode for ticket selector for current event?

Posted: February 24, 2025 at 7:47 pm

Viewing 7 reply threads


Kitka

February 24, 2025 at 7:47 pm

I see there is a shortcode for an event [ESPRESSO_TICKET_SELECTOR event_id=123] but what would the shortcode be where the event ID would be automatically generated by the single event you are viewing? I’m creating a template for individual events.

Thanks.


Tony

  • Support Staff

February 25, 2025 at 4:54 pm

Hi there,

Currently, the ticket selector shortcode requires an event_id to be passed for it to work, or the EE_Event object is passed to the function the above shortcode is calling.

When you say creating a template, do you mean a theme template or a template within a page builder?


Kitka

February 25, 2025 at 5:26 pm

I am creating a template for single events, using Elementor


Tony

  • Support Staff

February 25, 2025 at 5:57 pm

OK, so a page builder template (not the usual ‘theme template’ used within WordPress itself).

You can’t work around this within the template without making a changing to how the shortcode is parsed. I’ll create a ticket to discuss this and see what we can do here.

Is is just the ESPRESSO_TICKET_SELECTOR shortcode you are using or others?


Kitka

February 25, 2025 at 6:03 pm

The ticket booking form shortcode is all I need. I also have installed the Waitlist addon, so I am hoping that will show up when the event is full as well?


Tony

  • Support Staff

February 25, 2025 at 6:05 pm

That hooks into the ticket selector output, so it should do yes.

Note the Waitlist add-on is based on the Event having a sold-out status, it wont show if you have say 2 different ticket types and only 1 of those types is sold out.


Kitka

March 2, 2025 at 3:05 pm

Just wondering if you may have found a way to use a shortcode for the ticket selector in the template yet?


Tony

  • Support Staff

March 3, 2025 at 4:34 pm

Hi there,

Sure did! lease update to the latest version 5.0.36.p which includes a fix for this.

If you don’t see an update on your site just yet then go to Event Espresso -> General Settings.

Make no changes and just hit save to force an update check.

The update should then show in Dashboard -> Plugins.

Viewing 7 reply threads

The support post ‘shortcode for ticket selector for current 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.

Event Espresso