Home Forums Event Espresso Premium display available spaces (recurring events)

display available spaces (recurring events)

Posted: February 18, 2014 at 10:36 am

Jeroen Savelkouls

February 18, 2014 at 10:36 am

Hi! I’ve been going through the documentation and forum, but I can’t find the answer. I want to display the number of available spaces on my registration page. It seems that a lot of users on this forum have problems hiding the number of available places, but for me the problem is the other way round. I’m using recurring events. Thanks!


  • Support Staff

February 18, 2014 at 4:03 pm

Hi Jeroen,

Here is the documentation on the Attendee Numbers shortcode:

Jeroen Savelkouls

February 19, 2014 at 2:21 am

Hi Garth,

Thanks for your quick reply. I still don’t quite understand where to put this shortcode. Ideally, I want the number of available spaces to show up in the dropdown table, or, if that’s not possible, on the registration page. And do I have to manually paste this code to every individual event, or is there an easier way? I have over a hundred events on my site. Thanks!


February 19, 2014 at 4:26 am


The shortcode would go in the event description.

If you don’t mind adding some PHP code, you can add it in one or two lines and make it show on ALL events.

first copy the registration_page.php and registration_page_display.php fropm event-espresso/templates over to wp-content/uploads/espresso/templates.

Then edit the registration_page_display.php and insert the following

<?php echo '<p class="section-title"><span class="span_event_time_label">Available spaces: </span>' . do_shortcode('[ATTENDEE_NUMBERS event_id='. $event_id . ' type=available_spaces]') . '</p>'; ?>

to around line 104 or just above where is says

<div class="event_espresso_form_wrapper">

Jeroen Savelkouls

February 21, 2014 at 9:50 am

Thanks. I was just to about to test this, but now I see that all my events have dissapeared (both front and back end). Could this have something to do with the fact that the event dates have passed? Or that I haven’t yet typed in my license code? (Haven’t done that, because I’m still testing).

Jeroen Savelkouls

February 21, 2014 at 9:53 am

Even stranger, I’ve just added a new event that shows up at the front end, but has dissapeared from the back end. How can I delete this event? Thanks!

Jeroen Savelkouls

February 21, 2014 at 9:59 am

Never mind, I just needed to set the filter.

Jeroen Savelkouls

February 21, 2014 at 10:14 am

And the shortcode work perfectly. Many thanks for your help!


  • Support Staff

February 21, 2014 at 11:09 am

Hi Jeroen,

Seems you’ve worked through your issue already.

I’m glad the snippet Dean provided worked well for you 🙂

The support post ‘display available spaces (recurring events)’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 6 years, 1 month ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!