Home › Forums › Calendar Products › Events Calendar PRO › Events list widget not working
- This topic has 9 replies, 4 voices, and was last updated 9 years, 11 months ago by
Perth Jazz.
-
AuthorPosts
-
May 16, 2016 at 5:25 am #1114831
Perth Jazz
ParticipantHi
I recently updated the Events Calendar plugin on my WordPress website and now the Events List widget isn’t functioning. It says ‘There are no upcoming events at this time’ even though I have several events listed. I had to renew licences for both Events Calendar PRO and Community Events and then successfully installed plugins for both Events Calendar PRO and Community Events. Everything else seems to work except for the Events list widget.
Thanks for your help!
May 16, 2016 at 5:34 am #1114841Brian
MemberHi,
Sorry for the issues you are having. I can help troubleshoot this with you.
Do you have any custom templates in your theme for the widget?
With 3.10 and later we had to make some changes and if you do not update those custom templates the Events will not show.
In the list-widget.php template you can add these to the top and that might fix the issue instead having to redo custom work:
$events_label_plural = tribe_get_event_label_plural();$posts = tribe_get_list_widget_events();
Let me know how that works out.
Cheers
May 16, 2016 at 6:07 am #1114848Perth Jazz
ParticipantThanks for the reply. The theme the website uses is called Monk Null Template (theme provided by the web developer). I found the ‘Monk Null Template: list.php (tribe-events/list.php)’ – is this the right place to insert the text that you gave me?
In the window I have this:
<?php
/**
* List View Template
* The wrapper template for a list of events. This includes the Past Events and Upcoming Events views
* as well as those same views filtered to a specific category.
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/list.php
*
* @package TribeEventsCalendar
* @since 2.1
* @author Modern Tribe Inc.
*
*/if ( ! defined( ‘ABSPATH’ ) ) {
die( ‘-1’ );
} ?><?php do_action( ‘tribe_events_before_template’ ); ?>
<!– Tribe Bar –>
<?php tribe_get_template_part( ‘modules/bar’ ); ?><!– Main Events Content –>
<?php tribe_get_template_part( ‘list/content’ ); ?><div class=”tribe-clear”></div>
<?php do_action( ‘tribe_events_after_template’ ) ?>
May 16, 2016 at 8:48 am #1114962Brian
MemberHi,
It would be this file:
yourtheme/tribe-events/widgets/list-widget.php
May 17, 2016 at 6:36 am #1115308Perth Jazz
ParticipantHi Brian
I tried that and it didn’t work. Just to confirm, I copied it into: Monk Null Template: widgets.php (inc/widgets.php). I also tried copying it into: Monk Null Template: list.php (tribe-events/list.php) and that didn’t work either.
Any other suggestions?
Thanks for your help.
May 17, 2016 at 8:45 am #1115374Brian
MemberIf you do not have a file here:
yourtheme/tribe-events/widgets/list-widget.php
Then adding that coding will not work anywhere else.
Have you tried deleting the widget and adding a new copy of it to the widget area? If not please try that next.
Thanks
May 19, 2016 at 3:39 pm #1116755Perth Jazz
ParticipantHi Brian
I don’t think I have this file but please let me know if I’m looking in the wrong place. From the WordPress dashboard I navigated to Appearance -> Editor (Edit Themes) to get to the template stylesheet. This is the only place I can find php files to edit.
Do I need to create this file?
What I can see in this location that looks similar to your description is:
list.php
(tribe-events/list.php)single-event.php
(tribe-events/single-event.php)widgets.php
(inc/widgets.php)Thanks for your help.
May 19, 2016 at 6:46 pm #1116813Brian
MemberHi,
If it is not there, then adding it is not going to help.
Have you tried deleting the widget and adding a new copy of it to the widget area? If not please try that next.
June 3, 2016 at 9:35 am #1122296Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Events list widget not working’ is closed to new replies.
