Event list widget not working

Home Forums Calendar Products Events Calendar PRO Event list widget not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #976216
    twosixtwo
    Participant

    Hi. The event list widget is stating ‘no upcoming events’ when there are. It was working. I read the topic in this forum opened today on the same subject, where you advise amending the list-widget.php file.
    1) You recommend this if ‘you have any custom templates in your theme for the widget? ‘. I don’t.
    2) I’ve found 3 list-widget.php files,
    /wp-content/plugins/the-events-calendar/src/views/widgets
    /wp-content/themes/twentytwelve-child/tribe-events/widgets
    /wp-content/plugins/events-calendar-pro/src/views/widgets
    so don’t know which to amend anyway!
    This site is supposed to be going live today so any help you can give would be really appreciated!
    Many thanks

    #976220
    Brian
    Member

    Hi,

    Sorry for the confusion here. I can help out.

    You will want to edit the list-widget.php file located here:

    /wp-content/themes/twentytwelve-child/tribe-events/widgets

    Add this to the top of the file:

    $events_label_plural = tribe_get_event_label_plural();

    $posts = tribe_get_list_widget_events();

    Right after this coding:


    if ( ! defined( 'ABSPATH' ) ) {
    die( '-1' );
    }

    Let me know how that works out.

    Thanks

    #976221
    twosixtwo
    Participant

    Hi Brian
    That worked! Thanks for such swift help. Is this amend update proof?
    Regards

    #976247
    Brian
    Member

    Hi,

    Glad it is working now.

    Yes, by updating the template in your child theme updating the plugins will not overwrite the changes there. However, watch the release notes as you may have to make changes to the template on future updates to work again just as you did today. I do not believe any changes are planned for 3.11 our next release.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Event list widget not working’ is closed to new replies.