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 Hide "register" button on past events in Event Listings? | Event Espresso - Staging Server
Hello! I’ve figured out how to use shortcodes to display the list of events I want, by date, including past events. But, what I’d like is, on those events that are past/expired, to hide the “register” button, and ideally, hide the number of available spots as well. Is this possible? Here’s a link to my current testing page where I’m working on this – there is one event currently that is past – the first one: http://colmanknight.com/ck-events-2/
Thanks, Jonathan – but, actually, I do want the past events to show. I just want it to be clear from that Events List page that they’re past, and therefore no one can register. As it is now, if they didn’t notice the date, someone would need to click on the Register button to see that the event is closed.
I’ve looked into breaking up the list into two – the first that shows Past Events, just with titles & dates, and the other with active/upcoming events – but searching through the forums it seems like this isn’t possible at this time. So, I think I’ll need to manually create (and update) the page each time an event expires.
Depending on how you are setting it up (I couldnt see the page you had) it’s theoretically possible, but you would need to use PHP to do it.
I would probably do something like a check against the event end date and the current date and if the event end date is before today dont show the link, and if its today or later show the link.
Viewing 3 reply threads
The support post ‘Hide "register" button on past events in Event Listings?’ 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.