Title: Different defaultview for each calendar instance
Last modified: August 21, 2016

---

# Different defaultview for each calendar instance

 *  Resolved [witho](https://wordpress.org/support/users/witho/)
 * (@witho)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/different-defaultview-for-each-calendar-instance/)
 * I have two different instances of WP FullCalendar in different WP pages calling
   with shortcode and filtering by categories, and I am wondering if I could set
   a different defaultview to each instance of the WP fullcalendar.
 * Thanks a lot!
 * [http://wordpress.org/plugins/wp-fullcalendar/](http://wordpress.org/plugins/wp-fullcalendar/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/different-defaultview-for-each-calendar-instance/#post-4223559)
 * sorry this isn’t possible at the moment.
 *  Thread Starter [witho](https://wordpress.org/support/users/witho/)
 * (@witho)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/different-defaultview-for-each-calendar-instance/#post-4223562)
 * Is there no way to hack it?
 * Thanks a lot!
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/different-defaultview-for-each-calendar-instance/#post-4223585)
 * hmm, try php file at wp-fullcalendar/wp-fullcalendar.php at around line 300 –`
   defaultView: '<?php echo get_option('wpfc_defaultView', 'month'); ?>'`
 *  Thread Starter [witho](https://wordpress.org/support/users/witho/)
 * (@witho)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/different-defaultview-for-each-calendar-instance/#post-4223587)
 * Yeah,
 * I can hack it with something lke this:
 * `defaultView: '<?php if(strpos($_SERVER["REQUEST_URI"], "page_name") != false){
   echo 'month';} else{ echo get_option('wpfc_defaultView', 'month');} ?>',`
 * Thanks a lot!
 *  [AJD](https://wordpress.org/support/users/ajd/)
 * (@ajd)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/different-defaultview-for-each-calendar-instance/#post-4223663)
 * Hi, can you explain this a bit more?
 * I am trying to achieve the same thing, but via a filter or hook if possible.
 * I would like to leave the default set to ‘month’, and create another page that
   shows the ‘week’ view.
 * Thanks

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

The topic ‘Different defaultview for each calendar instance’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fullcalendar.svg)
 * [WP FullCalendar](https://wordpress.org/plugins/wp-fullcalendar/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fullcalendar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fullcalendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fullcalendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fullcalendar/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [AJD](https://wordpress.org/support/users/ajd/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/different-defaultview-for-each-calendar-instance/#post-4223663)
 * Status: resolved