I have an event list on the front end dashboard in a widget called "On Call This Week" which is supposed list current events. The event will only display if the date is in the future. How do I make it display if it is current, like today or this week? (Monday-Friday)
If you provide me with wp-admin I'll sort it out. As I said earlier upcoming events don't show events that are currently in progress. That's intentional by design and not a bug.
I have an event list on the front end dashboard in a widget called "On Call This Week" which is supposed list current events. The event will only display if the date is in the future. How do I make it display if it is current, like today or this week? (Monday-Friday)
Hi,
Indeed expired/events-in-progress are not displayed when the widget is set to upcoming events only.
You could make a small mod to the code which should resolve this.
Please try following:
1) Open file wp-content / plugins / stachethemes_event_calendar / assets / php / class.events.php
2) Search for function get_upcoming_events on line 543
3) On line 546 there's this code:
replace it with:
Stachethemes Developer
If you provide me with wp-admin I'll sort it out. As I said earlier upcoming events don't show events that are currently in progress. That's intentional by design and not a bug.
Stachethemes Developer
Cache was turned on and most likely was pulling old data before the changes.
I've altered the code to display events starting from the first day of the current week. I assume this is what you need?
Stachethemes Developer
ok thanks, however, that code is different than the one you sent me.
one more thing, I noticed when your plugin is activated, some of my icons disappear, in the dashboard and in the nav. Is there a way to fix this?
Yes, the previous code was including "today" only. The new one will include the whole current week.
Could you send me screenshot of the section where icons are missing?
Stachethemes Developer
Attached are 2 screenshots, one showing how it should look, the other shows red boxes where icons are missing.
Thanks
Could you check now?
Icons are missing because the calendar is using a little newer version of font-awesome library.
Stachethemes Developer
That worked, thanks a lot!