Showing more events on Mini Calendar view

Home Forums Calendar Products Events Calendar PRO Showing more events on Mini Calendar view

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1063273
    Claire
    Participant

    Hi
    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

    #1063798
    Nico
    Member

    Hi 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,
    Nico

    #1063806
    Claire
    Participant

    Thanks 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;

    #1063810
    Nico
    Member

    Hey 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,
    Nico

    #1063812
    Claire
    Participant

    Hi 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
    Claire

    #1064508
    Nico
    Member

    Hey 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,
    Nico

    #1079301
    Support Droid
    Keymaster

    This 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Showing more events on Mini Calendar view’ is closed to new replies.