• Resolved steve098

    (@steve098)


    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';

    https://www.ads-software.com/plugins/wp-fullcalendar/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘change default date range view on first load’ is closed to new replies.