Showing past events below the [tribe_mini_calendar]

Home Forums Calendar Products Events Calendar PRO Showing past events below the [tribe_mini_calendar]

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1192329
    Jan
    Participant

    Hi there,

    is it also possible to show past events listed below the Mini Calendar [tribe_mini_calendar] in the same way like future events will displayed after choosing the favoured month? At the moment the past event will only displayed after clicking on the day in the past.

    Thanks for your help!

    Regards,
    Jan

    #1192858
    Hunter
    Moderator

    Hi Jan,

    Welcome to our premium plugin support forums and thank you for your purchase. I have a snippet which I’ll share below, but please note it’s a very rough draft and may require some tweaking to get it working properly. You’ll have to take the reigns from here. Please review our What support is provided for license holders for more information.

    // [tribe_mini_calendar_date eventDate="2017-08"]
    function tribe_mini_calendar_date_func( $args ) {

    // add event date
    if ( isset( $args['eventdate'] ) ) {
    define ( 'DOING_AJAX', true);
    $_POST['eventDate'] = $args['eventdate'];
    }

    ob_start();
    the_widget( 'Tribe__Events__Pro__Mini_Calendar_Widget', $args, $args );
    return ob_get_clean();
    }
    add_shortcode( 'tribe_mini_calendar_date', 'tribe_mini_calendar_date_func' );

    Change the [tribe_mini_calendar_date eventDate=”2017-08“] bolded text to the year/month you want events displayed from. If you need further assistance, we have a list of customizers available for hire. Lastly, this is an idea I feel is worth mentioning via our UserVoice Feature Ideas suggestion channel.

    Thanks again and best of luck with the customizations. Cheers!

    #1193005
    Jan
    Participant

    This reply is private.

    #1193592
    Hunter
    Moderator

    Hi Jan,

    My apologies for not being clear about what to do with the provided code. Try adding it to the bottom of your theme’s functions.php file. It’s best you do this with a text editor that’s connected via FTP or through your cPanel File Explorer so if for some reason it causes an error on your site, you can simply remove the snippet so the site works again.

    If you have any troubles, feel free to copy the entire contents of your functions.php file into pastebin.com and share a link with me. I’d be happy to make sure the code works properly and doesn’t cause any errors on your site.

    Thank you and have a good rest of your evening. Cheers!

    #1193793
    Jan
    Participant

    This reply is private.

    #1194621
    Hunter
    Moderator

    Jan,

    Thank you for your patience. My apologies for the misunderstanding, I believe I finally understand your request. I’m not able to come up with anything at the moment, but please check back Monday and I should have a snippet for you which will help out. Have a great weekend!

    #1204364
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Showing past events below the [tribe_mini_calendar]’ is closed to new replies.