The event_espresso_get_is_active function (located in main.php) will run a check and return the registration status of the event. You can review how it’s used in some of the built in Event Espresso templates such as /templates/event_list.php, /templates/event_list_display.php and /templates/registration_page.php.
I would like to use it in my own single.php template file within the <This is the registration form> (which i copied from registration_page_display.php). The form works perfect in my template, the <?php if ($num_attendees <= $reg_limit){ ?> works perfect as well, but as soon as i add the
—&& $status == ‘REGISTRATION_OPEN’){ ?>— GAME OVER ;(
I tried using your lines above, but that does not seem to work. Hm ;((
The support post ‘IF EXPIRED do this, write that’ 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.