Title: Future month calendars
Last modified: August 24, 2016

---

# Future month calendars

 *  Resolved [andresgrossmann](https://wordpress.org/support/users/andresgrossmann/)
 * (@andresgrossmann)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/future-month-calendars/)
 * I have a need to show a year of events on one page, grouped by month. Is there
   a way to show a month calendar for a month that is more than 1 month in the future?
   I can use month+1 to get the next month, but month+2 etc does not work.
 * [https://wordpress.org/plugins/my-calendar/](https://wordpress.org/plugins/my-calendar/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/future-month-calendars/#post-6010487)
 * Only the upcoming events lists offer the ability to use the whole variety of ‘
   month+n’ options. The main calendar only supports showing the next month.
 * You can use date filters to pass custom dates into a calendar, that will alter
   what’s being shown – see the documentation here: [https://www.joedolson.com/docs/mc_filter_date_parameter/](https://www.joedolson.com/docs/mc_filter_date_parameter/)
 *  Thread Starter [andresgrossmann](https://wordpress.org/support/users/andresgrossmann/)
 * (@andresgrossmann)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/future-month-calendars/#post-6010641)
 * Thanks for the clarification on the “month+n”. So could I incorporate the date
   filtering into a shortcode? I am a little confused on how to do that. I am using
   the “mini” format to display each month (ex: [my_calendar format=”mini” time=”
   month”]).
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/future-month-calendars/#post-6010657)
 * There would be a couple different steps; you’d need to create a custom function
   to be attached to the year and month filters and add a unique ID to each shortcode,
   that you could use to pinpoint which month that calendar should show.
 * e.g.
 *     ```
       add_filter( 'mc_filter_month', 'my_custom_month' );
       function my_custom_year( $month, $args ) {
            if ( $args['id'] == 'june-calendar' ) {
                return '6';
            }
            return $month;
       }
       ```
   
 * You’d want a number of cases for each situation, etc.
 *  Thread Starter [andresgrossmann](https://wordpress.org/support/users/andresgrossmann/)
 * (@andresgrossmann)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/future-month-calendars/#post-6010726)
 * Thanks for the explanation.
 * I got the specific month calendars working with the following code in my theme’s
   function.php file in case anyone else needs this functionality:
 *     ```
       add_filter( 'mc_filter_month', 'my_custom_month', 10, 2  );
       function my_custom_month( $month, $args ) {
           if ( $args['id'] == 'august-calendar' ) {
           	$month = '08';
           }
           elseif ( $args['id'] == 'september-calendar' ) {
               $month = '09';
           }
           // etc...
           return $month;
       }
       ```
   
 * Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Future month calendars’ is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

## Tags

 * [month](https://wordpress.org/support/topic-tag/month/)

 * 4 replies
 * 2 participants
 * Last reply from: [andresgrossmann](https://wordpress.org/support/users/andresgrossmann/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/future-month-calendars/#post-6010726)
 * Status: resolved