Posted: May 19, 2015 at 11:31 am
|
Hi, Or, is there is better way to have a list of events to show a ticket selector and the datetime only if a date is upcoming, otherwise display “nothing currently scheduled” |
Hi there, Normally what happens is if the event is expired, the ticket selector will no longer display at all. Does that happen if you temporarily remove your custom templates? |
|
|
Yes, that is what happens. Here is the desired scenario: |
Can you post link to a gist of the single-espresso_events.php template so we can take a look and let you know where to add the code? If your template loads in any template parts, it will be helpful to have copies of those too. |
|
|
here is the github: |
|
How about replacing the line
in content-espresso_events.php, with
This will display the message if the event is expired or sold out, but display the ticket selector if the event is still upcoming. You may want to check the methios in /wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Event.class.php if the |
|
that worked Dean. Thank you. |
Thanks for letting us know Jenifer. I’ll update this support post to resolved. If you need help with anything else, then please create a new support post in our support forums: https://eventespresso.com/support/forums/ — |
|
The support post ‘Customize EE4 template’ 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.