Posted: October 4, 2013 at 7:13 am
|
Hello, I have three events set up in event espresso. They have the following registration details: Event A: Event B: Event C: I’m using the shortcode [EVENT_LIST limit=2] Yesterday 2 events were displayed and it was working as expected. Today Event A’s registration has ended, but I’m only seeing Event B listed. If I change the shortcode to [EVENT_LIST limit=3] I will see the two open events. Can you help me figure out why both events are not showing? Thanks. |
Hi phgroup, What are the actual Event dates for those events? I’m guessing Event A is still an active event (NOT_OPEN to registrations but is ended today/tomorrow?) |
|
|
Event A: Event B: Event C: All three events are active. Event A has a status of CLOSED, Events B and C have a status of OPEN. |
Hi phgroup, Just a quick update, we are looking into this and have found that this occurs when the registration date has ended, but the event has not passed. They are still loaded, then the limit is applied, then the status is filtered. We are working on a fix and will update you soon. |
|
Hi phgroup, I’ve modified the function used by the [EVENT_LIST] shortcode to show only open events via another attribute. If you open up event-espresso/templates/event_list.php On line 27 you should find if (!function_exists('event_espresso_get_event_details')) { That is the function used for that shortcode, replace that entire function with THIS ONE Then when using the shortcode [EVENT_LIST show_only_open=true limit=2] |
|
|
Tony, |
Hi phgroup, Glad to help. Not if you leave the file where it is now no, it will be replaced when EE updates. If you copy event_list.php and event_list_display.php to wp-content/uploads/espresso/templates those files will be saved. This applies to any modifications you make to any files in /event-espresso/templates/. |
|
|
Great, thanks! |
The support post ‘Issue with [EVENT_LIST]’ 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.