Home › Forums › Calendar Products › Events Calendar PRO › Showing more events on Mini Calendar view
- This topic has 6 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
January 27, 2016 at 10:19 am #1063273
Claire
ParticipantHi
It seems that on mini calendar view, it only shows 5 items, even though I have 15 items in the month. Can I increase the amount of Calendar items shown below mini calendar view [tribe_mini_calendar] to show more than 5 items at a time.I really hope so, my client is really wanting me to do this.
Thank you
January 28, 2016 at 6:51 am #1063798Nico
MemberHi there Claire,
Thanks for reaching out with this interesting inquire 🙂
If you are using the widget via shortcode you’ll need to add this code to your theme (or child theme) functions.php file in order to modify the events count, unfortunately there’s no count parameter for the shortcode:
/*
* The Events Calendar - Change event count to show in mini calendar when used via shortcode
*/
add_action( 'wp_ajax_tribe-mini-cal-day', 'tribe_mini_cal_change_count' );
add_action( 'wp_ajax_nopriv_tribe-mini-cal-day', 'tribe_mini_cal_change_count' );function tribe_mini_cal_change_count (){
if ( isset( $_POST['count'] ) ) $_POST['count'] = 10;
}
If you are including it in the Widget section of the back end you can easily tweak the amount of events shown in the widget form: https://cloudup.com/cl_ndeT1BoD
Please let me know if you are able to get this working as you need,
Best,
NicoJanuary 28, 2016 at 7:06 am #1063806Claire
ParticipantThanks for your reply, but I think there is syntax error in the code, as when I add into functions.php it causes server error.
Dreamweaver says there’s an error on this line:
if isset( $_POST[‘count’] ) ) $_POST[‘count’] = 10;
January 28, 2016 at 7:16 am #1063810Nico
MemberHey Claire,
Thanks for pointing that out! I’ve updated the snippet in my reply…
That line should be:
if ( isset( $_POST['count'] ) ) $_POST['count'] = 10;
Please let me know if that fixes the issue,
Best,
NicoJanuary 28, 2016 at 7:25 am #1063812Claire
ParticipantHi Nico
That fixed the code error, but the mini calendar view still only shows 5 events in the month under the Calendar, when I have 13 events in one month.
Best
ClaireJanuary 29, 2016 at 8:12 am #1064508Nico
MemberHey Claire,
Sorry to hear the snippet didn’t work for you 🙁
Can you share your system information with me so I can check and re-rest with the calendar version you are using?
Also can you point me to the page in your site where the widget is embedded?
Thanks,
Have a great weekend,
NicoFebruary 21, 2016 at 8:35 am #1079301Support 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 ‘Showing more events on Mini Calendar view’ is closed to new replies.
