Title: Setting Months/Date Range
Last modified: February 1, 2023

---

# Setting Months/Date Range

 *  Resolved [Erica](https://wordpress.org/support/users/pride2/)
 * (@pride2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/setting-months-date-range/)
 * Pretty Google Calendar works really well for making a Google Calendar showing
   available dates to schedule an event accessible to the public. In our case, we
   want people to know when there is availability for them to host a charter (we
   operate a ship) so I embedded a specific Google Calendar on our Charters & Receptions
   page. Our sailing season is usually March through October. The one tweak that
   would make the calendar more user-friendly would be to limit the months that 
   show on the calendar so that users don’t have to scroll through months when the
   ship isn’t operating. Is there a shortcode parameter to do this? Or a parameter
   to “skip over” empty months?
 * Since the plugin is free, I’m not complaining, but thought that I would ask my
   question anyway:)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsetting-months-date-range%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [LBell](https://wordpress.org/support/users/lbell/)
 * (@lbell)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/setting-months-date-range/#post-16435340)
 * Howdy!
 * Did you try list_type=”listYear”? That should compress everything into one list.
 * If that doesn’t work, I don’t have a better solution. Hiding specified months
   is not supported.
 * Thanks!
 *  Thread Starter [Erica](https://wordpress.org/support/users/pride2/)
 * (@pride2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/setting-months-date-range/#post-16437250)
 * Thank you, [@lbell](https://wordpress.org/support/users/lbell/). I hadn’t tried
   list_type=”listYear.” I did, though, after reading your response, but it didn’t
   have any effect. Thank you for the suggestion, though.
 * Update: User error! listCustom in my original shortcode had to be changed because
   it was overriding any new list_type. Original shortcode: [pretty_google_calendar
   gcal=”pride2.org_i6g5r7g25o2hha8hg2u8n1f7j4@group.calendar.google.com” initial_view
   =”listCustom” views=”listCustom” enforce_listview_on_mobile=”true”]
 * Using new shortcode, & choosing listMonth, rather than listYear, accomplished
   what I wanted. New shortcode: [pretty_google_calendar gcal=”pride2.org_i6g5r7g25o2hha8hg2u8n1f7j4@group.
   calendar.google.com” list_type=”listMonth” views=”listMonth” initial_view=”listMonth”
   show_today_button=”false” enforce_listview_on_mobile=”true”]
 * Now, our calendar is much more user-friendly.
 * This was my first time customizing any shortcode, so I am quite pleased with 
   the result & glad that I found Pretty Google Calendar.
    -  This reply was modified 3 years, 3 months ago by [Erica](https://wordpress.org/support/users/pride2/).
 *  Plugin Author [LBell](https://wordpress.org/support/users/lbell/)
 * (@lbell)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/setting-months-date-range/#post-16449239)
 * Glad you got it sorted, and thanks for sharing your fix.

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

The topic ‘Setting Months/Date Range’ is closed to new replies.

 * ![](https://ps.w.org/pretty-google-calendar/assets/icon.svg?rev=2613871)
 * [Pretty Google Calendar](https://wordpress.org/plugins/pretty-google-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pretty-google-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pretty-google-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/pretty-google-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pretty-google-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pretty-google-calendar/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [LBell](https://wordpress.org/support/users/lbell/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/setting-months-date-range/#post-16449239)
 * Status: resolved