Shortcode tribe_events_list month error

Home Forums Calendar Products Events Calendar PRO Shortcode tribe_events_list month error

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1368508
    Joël Schmid
    Participant

    Hello

    When using the shortcode

    [tribe_events_list thumbnail="false" limit="150"]

    I get a list of all events as desired. However, all events in the month of October (German Oktober), display the weekday (SO, Sonntag), instead of the month like all other events. (See Print-Screen below)

    Thank you in advance for your help.

    Cheers, Joël

    #1368945
    Patricia
    Member

    Hey Joël,

    Thank you for reaching out to us!

    The [tribe_events_list] shortcode will display the weekdays by default. I’ve temporarily changed my WordPress install language to German so you can check the default display.

    You can modify the way your [tribe_events_list] shortcode (and widget) is displayed by coping the following file:

    wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php

    And pasting it on:

    [your-theme]/tribe-events/pro/widgets/modules/single-event.php

    To achieve what you want, you’ll have to modify the code inside “list-daynumber” class (lines 108 to 110).

    I hope this helps! Let me know if you have any other questions and I’ll be happy to assist!

    Best Regards,

    Patricia

    #1369023
    Joël Schmid
    Participant

    Hello Patricia

    The [tribe_events_list] shortcode will display the weekdays by default.

    Hmm, I’m a bit confused now. Why is it displaying the month in my case except for October where there are multiple events on the same day and that it displays the weekday?

    I didn’t do any customizations on wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php.

    Thank you in advance for your feedback!

    #1369682
    Patricia
    Member

    Hi Joël,

    You are right: that’s odd! Could you please send me the link to access the page with this shortcode so I can take a look?

    This sounds like a customization or a conflict: let’s find out what’s going on!

    Thanks!

    Patricia

    #1369869
    Joël Schmid
    Participant

    This reply is private.

    #1370266
    Patricia
    Member

    This reply is private.

    #1370573
    Joël Schmid
    Participant

    This reply is private.

    #1371763
    Patricia
    Member

    This reply is private.

    #1371880
    Patricia
    Member

    Hi Joël,

    I’ve just ran a quick test and found out what was actually causing the issue here.

    Inside wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php we have a piece of code that basically says: if the event occurs in the same month as the current month, display the date format as day-of-the-week instead of month name:

    <?php else: ?>
                <span class="list-dayname">
                    <?php
                    echo apply_filters(
                        'tribe-mini_helper_tribe_events_ajax_list_dayname',
                        date_i18n( 'D', $post_date ),                                                                                                                                                            
                        $post_date,
                        $mini_cal_event_atts['class']
                    );
                    ?>
                </span>
            <?php endif; ?>

    The simplest way to modify this behavior is by overriding this template (as already explained here), and modifying line number 100:

    replace:

    date_i18n( 'D', $post_date ),

    with:

    date_i18n( 'M', $post_date ),

    After you make this change, the tribe_events_list shortcode will display the events for every month with the expected date format.

    Please accept my sincere apologies for the delayed response here and if you have any other questions, let me know and I’ll be happy to assist 🙂

    Best Regards,

    Patricia

    #1372019
    Joël Schmid
    Participant

    Hello Patricia

    Thanks for the infos. Yes, I’m aware that it displays the day, once there are multiple events. I just think this is not very useful and rather confusing. Therefore, please consider this as a feature request.

    Cheers, Joël

    #1372581
    Patricia
    Member

    Hi Joël,

    Thanks for your feedback! I would recommend proposing this feature in our User Voice page: perhaps we could add the option to change the current month date format via Dashboard instead of overriding the single-event.php file.

    Other users can then up-vote it, giving us a great idea of how much demand there might be (or, if you can find a suitable existing request, you can in turn up-vote that).

    If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can!

    Thanks!

    Patricia

    #1389133
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Shortcode tribe_events_list month error’ is closed to new replies.