Home › Forums › Calendar Products › Events Calendar PRO › Showing past events below the [tribe_mini_calendar]
- This topic has 7 replies, 4 voices, and was last updated 9 years, 5 months ago by
Jan.
-
AuthorPosts
-
November 15, 2016 at 3:09 am #1192329
Jan
ParticipantHi 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,
JanNovember 15, 2016 at 4:43 pm #1192858Hunter
ModeratorHi 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!
November 15, 2016 at 11:54 pm #1193005Jan
ParticipantThis reply is private.
November 16, 2016 at 5:15 pm #1193592Hunter
ModeratorHi 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!
November 17, 2016 at 5:42 am #1193793Jan
ParticipantThis reply is private.
November 18, 2016 at 10:32 am #1194621Hunter
ModeratorJan,
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!
December 10, 2016 at 8:35 am #1204364Support 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 ‘Showing past events below the [tribe_mini_calendar]’ is closed to new replies.
