Support

Home Forums Event Espresso Premium EE4 Upcoming Events widget does not show currently available events

EE4 Upcoming Events widget does not show currently available events

Posted: September 30, 2014 at 6:40 pm


wgilliam

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


wgilliam

October 1, 2014 at 11:23 am

Example:
http://mavsbball.com/current-events/ shows an event that is current

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


Tony

  • Support Staff

October 1, 2014 at 11:45 am

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.


wgilliam

October 1, 2014 at 11:56 am

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


Tony

  • Support Staff

October 1, 2014 at 12:01 pm

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.


wgilliam

October 1, 2014 at 12:21 pm

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


Dean

October 2, 2014 at 7:01 am

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.


Josh

  • Support Staff

November 12, 2014 at 5:52 am

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.

Event Espresso