Support

Home Forums Event Espresso Premium displaying number of spots left in an event on registration page

displaying number of spots left in an event on registration page

Posted: January 19, 2013 at 3:38 pm

Viewing 1 reply thread


jacob granberry

January 19, 2013 at 3:38 pm

Hey there, was trying to figure out the Shortcode for displaying the number of available spaces in a class for an event. I want it to display on the page, “There are 25 spots available spots left in the class” or something along that effect. Can I get some help figuring out the shortcode to do this? Thanks!


Dean

January 21, 2013 at 12:00 am

Hi,

I would use the following shortcode in the event, the event_id number can be found by going to the event overview page and looking at the first column.

There are [ATTENDEE_NUMBERS event_id=14 type=available_spaces] available spots left in the class.

If you wanted to add this to the registration_page_display.php file to automate it then I would use something like:

<?php
echo 'There are ' . do_shortcode('[ATTENDEE_NUMBERS event_id="' . $event_id . '" type=available_spaces]') . ' available spots left in the class.';
?>
Viewing 1 reply thread

The support post ‘displaying number of spots left in an event on registration page’ 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