Posted: July 17, 2013 at 4:18 am
|
If today is July 17, and I make an event that expires at 5:00 July 17, that event is no longer displayed in the event-list after 5:00. Is it possible to make it so that it is displayed for the rest of the day? I also want to add a message like “You can no longer register for this event. Call us at 8888888 if blah blah blah… ” Thanks |
|
If you are using the [EVENT_LIST] shortcode you can add the expired attribute, [EVENT_LIST show_expired=true]. However it will show all expired events. The message can be changed if you edit the registration_page_display.php file. You could use the translation system (https://eventespresso.com/wiki/how-to-change-wording-with-poedit/), but the message is broken into parts so it may be a little annoying to track down the individual sections of the message. Please note if you edit the template it is best to copy the registration_page.php and registration_page_display.php (they are paired files) to the wp-content/uploads/espresso/templates directory so that updates don’t automatically over write the changes you have made. |
|
Thanks for the quick answer. I use the [ESPRESSO_EVENTS] shortcode on the page. Will the attribute work for that to? I dont want to show all the expired events. Just the ones that have an end-time and has expired on the current day. Maybe there is some sql-statement I can tweak? |
|
It should be possible, because the widget does it. |
|
Hi, No, the [ESPRESSO_EVENTS] shortcode does not take attributes, I would recommend hiding that page from your menu (do not delete or draft or password protect it, otherwise the plugin will break) and create a new page in its place using the EVENT_LIST shortcode. It does the same thing but has attributes so is much more flexible. https://eventespresso.com/wiki/shortcodes-template-variables/#event-list From looking at the SQL statement, it should be displaying that event, so I will raise a ticket to look into this as I cannot see an issue with the statement itself so perhaps there is something else occurring. |
|
Great. Thank you =) |
Hi Karen, The event should still display in the event list as long as the registration end time hasn’t passed. This is dependent on a few factors though: The WP Time zone settings and the MySQL time zone settings need to match. Going forward in Event Espresso 4.x they’re working on switching date times over to be based on UTC0 so date times can be consistent regardless of server environments. One thing that might help in this case is to use the widget on a page. Some WP themes will have a feature that lets you place widgets right on a page and there are plugins that add this functionality. http://wordpress.org/plugins/widgets-on-pages/ |
|
The support post ‘Display events that expire at a specific time on the current date’ 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.