Posted: September 30, 2014 at 6:40 pm
|
The events show up fine on the /events page and users are able to register for them. However, nothing shows up on the Upcoming events widget that I’m using in my sidebar. Incidentally, if I set the widget to show expired events … they show up, just not the one that is currently available. thanks |
|
Example: But the widget on the home page (http://mavsbball.com/) doesn’t show the event. Is this a bug? or am I missing something? thanks – wg |
Hi wg, Currently the widget checks for events where DTT_EVT_start >= now() As your event has already started it is no longer displayed within the upcoming events widget, as the event is no longer upcoming, but active. Setting show expired removes this check and shows all your events. |
|
|
I just removed the check and it is showing expired but not current. It seems that there should be an option to show Upcoming & current .. or just include currently running events alongside the upcoming (that is imho the most sensible). Please advise. Thanks again – wg |
You could change DTT_EVT_start to DTT_EVT_end, like so: $where['Datetime.DTT_EVT_end'] = array( '>=', current_time( 'mysql' )); Although that will only work for single datetime events. I have created a ticket with your feedback for a future version. |
|
|
Where do I make that change? I’m using a child theme so I’d preferably like to put it somewhere it will not be overwritten by an update 🙂 thanks -wg |
|
Hi, I believe Tony is referring to the Upcoming Widget file: /wp-content/plugins/event-espresso-core-reg/widgets/upcoming_events/EEW_Upcoming_Events.widget.php, line 256 $where['Datetime.DTT_EVT_start'] = array( '>=', current_time( 'mysql' )); The only way to make it update proof would be to create a new widget based on the default one, in your child theme. If you’re not well versed with PHP and WordPress code, you may need a developers assistance with that. |
Hi there, A little update on this: A change to the way the widget filters current events is included in Event Espresso 4.4.5 which is available as an update now. |
|
The support post ‘EE4 Upcoming Events widget does not show currently available events’ 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.