Home › Forums › Calendar Products › Events Calendar PRO › Shortcode tribe_events_list month error
- This topic has 12 replies, 2 voices, and was last updated 8 years, 5 months ago by
Joël Schmid.
-
AuthorPosts
-
October 25, 2017 at 3:10 am #1368508
Joël Schmid
ParticipantHello
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
October 25, 2017 at 4:34 pm #1368945Patricia
MemberHey 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
October 26, 2017 at 12:54 am #1369023Joël Schmid
ParticipantHello 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!
October 26, 2017 at 5:55 pm #1369682Patricia
MemberHi 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
October 27, 2017 at 12:00 am #1369869Joël Schmid
ParticipantThis reply is private.
October 27, 2017 at 10:20 am #1370266Patricia
MemberThis reply is private.
October 27, 2017 at 11:51 pm #1370573Joël Schmid
ParticipantThis reply is private.
October 30, 2017 at 3:12 pm #1371763Patricia
MemberThis reply is private.
October 30, 2017 at 7:39 pm #1371880Patricia
MemberHi 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
October 31, 2017 at 5:17 am #1372019Joël Schmid
ParticipantHello 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
October 31, 2017 at 5:12 pm #1372581Patricia
MemberHi 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
November 22, 2017 at 8:35 am #1389133Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Shortcode tribe_events_list month error’ is closed to new replies.
