Forum Replies Created
-
AuthorPosts
-
Jeff Schneider
ParticipantGene, I was having the same issue but upgrading to Event Calendar 4.6.2 solved the problem
April 12, 2017 at 5:27 pm in reply to: widgets/list-widget.php not meeting no events condition #1269223Jeff Schneider
ParticipantI just tested it out and when there are no events it shows the proper message, as expected. Thank you
January 11, 2017 at 8:18 pm in reply to: widgets/list-widget.php not meeting no events condition #1217147Jeff Schneider
ParticipantThanks, though I’m not sure if we’re on the same page here. Your second screenshot shows events which is not relevant to my issue.
What I’m reporting is that if there are no events, the widget should show the message “There are no upcoming events at this time”
It doesn’t because the condition on line 114 will always evaluate as true if there are no events, regardless of what is checked in the widget settings.. and return nothing.
It looks like someone else has reported the bug here
I’ll try to get to your test request when I have a chance.
-
This reply was modified 9 years, 3 months ago by
Jeff Schneider.
January 11, 2017 at 1:13 am in reply to: widgets/list-widget.php not meeting no events condition #1216410Jeff Schneider
ParticipantCliff,
Thank you for the reply.
Apologies if I’m missing something, but this looks like a bug to me.
On the list_widget.php, 4.4 introduced this on line 68
$no_upcoming_events = true;Starting at line 114:
// If no posts, and the don't show if no posts checked, let's bail if ( empty( self::$posts ) && $no_upcoming_events ) { return; }So it doesn’t matter if the option is checked in the widget settings. If there are no posts it returns nothing.
This explains to me why the “There are no upcoming events at this time” message post disappeared with 4.4.
I verified this by commenting out line 68 in list_widget.php and the “There are no upcoming events at this time” message came back (of course I promptly uncommented)
Thank you
JeffJeff Schneider
ParticipantThe fix here worked for me.
October 5, 2016 at 3:52 am in reply to: Changing the words 'events' and links based on category #1172618Jeff Schneider
ParticipantAnd for a single event, this worked
if (tribe_event_in_category(‘tours’)) {
}
October 5, 2016 at 2:58 am in reply to: Changing the words 'events' and links based on category #1172611Jeff Schneider
ParticipantThanks George,
I found that a conditional like this got what I needed in the override.
if ($instance[‘category’]==’tours’) {
… -
This reply was modified 9 years, 3 months ago by
-
AuthorPosts
