WordPress.org

Ready to get started?Download WordPress

Forums

WP FullCalendar
[resolved] change default date range view on first load (2 posts)

  1. steve098
    Member
    Posted 10 months ago #

    Not a question, but a solution I wanted to share.
    I wanted my calendar to show a different date range on first loading other than today's date (I wanted my calendar to show 1st Jan 2014 when first viewed)
    edit

    wp-content/plugins/wp-fullcalendar/wp-fullcalendar.php

    find
    function calendar( $args = array() ){
    change

    self::$args['month'] = (!empty($args['month'])) ? $args['month']-1:date('m', current_time('timestamp'))-1;
    
    self::$args['year'] = (!empty($args['year'])) ? $args['year']:date('Y', current_time('timestamp'));

    to

    self::$args['month'] = (!empty($args['month'])) ? $args['month']-1:'12';
    
    self::$args['year'] = (!empty($args['year'])) ? $args['year']:'2013';

    http://wordpress.org/plugins/wp-fullcalendar/

  2. steve098
    Member
    Posted 10 months ago #

    marked as resolved

Reply

You must log in to post.

About this Plugin

About this Topic