The Events Calendar
[resolved] Showing next months events in a mini-calendar. Almost possible. Any he (3 posts)

  1. kingofmycastle
    Posted 3 years ago #

    Hi, I'm hoping to show not only this months mini calendar in my sidebar but also next months too. I've changed some of the code but my OOP skills are lacking. Can anybody help me with this?

    To get an additonal calendar you just have to edit the table-mini.php file in /views/ and copy everything from line 11 ($tribe_ecp = TribeEvents::instance();) to line 82 (closing table div) and duplicate it after line 82.

    But I don't know how to knock this table a month forward.

    In Pseudo code it would be:

    $tribe_ecp = TribeEvents::instance();
    set $tribe_ecp->date to MONTH AFTER CURRENT MONTH

    Any ideas how to do this?

    Thanks in advance.


  2. kingofmycastle
    Posted 3 years ago #

    Just in case anybody has the same idea, don't bother. It's impossible to show next month's calendar by changing the date variable.

  3. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 3 years ago #

    Hey dude, you're correct that this is currently not possible. This feature will be added somewhere in the plugin's 2.1 lifecycle, though. Sorry I couldn't offer up more in the short-term.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic