Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
displaying number of spots left in an event on registration page | Event Espresso - Staging Server

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

  • Support Staff

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 - Staging Server