tribe_mini_calendar

Home Forums Calendar Products Events Calendar PRO tribe_mini_calendar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1441538
    Kevin
    Participant

    Hi,

    My question is on the Tribe calendar widget [tribe_mini_calendar].

    Currently I have set a filter limit on the short-code in my case 3 so on the date picked in the calendar 3 items show in a list underneath.

    What i would need is for the date selected to show all events for that day in the list underneath so if a day has 3, show 3 underneath but if the day has 5 show all 5 underneath. How could I achieve this?

    (Another solution would be at least to show a link to See All events for the day for example. So it could show 3 but then a link to see all events in a list.)

    Could you please advise on how to achieve this.

    It would be greatly appreciated.
    Thank you in advance for your time!

    Mark G.

    #1444684
    Barry
    Member

    Hi Mark,

    That seems like a reasonable request. Here’s a short snippet that might help you achieve this:

    function day_view_mini_cal_no_limit() {
        if ( @preg_match( '/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/', $_POST['eventDate'] ) ) {
            $_POST['count'] = -1;
        }
    }
    
    add_action( 'wp_ajax_tribe-mini-cal-day', 'day_view_mini_cal_no_limit', 5 );
    add_action( 'wp_ajax_nopriv_tribe-mini-cal-day', 'day_view_mini_cal_no_limit', 5 );

    In an ideal world we wouldn’t modify a superglobal variable as we’re doing above, but nonetheless it ought to be a safe and reliable way of achieving your goals. The code itself could be added either to a custom plugin (preferred) or else to your theme’s functions.php file.

    Let me know if that helps!

    #1464971
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘tribe_mini_calendar’ is closed to new replies.