• Resolved bowenac

    (@bowenac)


    Is there a way to start the calendar for the following month.

    What I am doing is using event list, using shortcode in a template file. I am using one for the current month. And would also like to make another section for the following month. So start = “+1 Month” but that does not seem to work.

    Anyway to get this to work or customize the plugin to allow this?

    http://wordpress.org/extend/plugins/ajax-event-calendar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bowenac

    (@bowenac)

    I tried this as well but doesn’t seem to be taking effect as it still defaults to today even though my echo is statement is working correctly and echoing 1 month from now… If I manually type in one month from now in the format that gets echoed as 2013-05-12 it works

    <?php $nextMonth = date('Y-m-d', strtotime('next month'));?>
    	<?php echo do_shortcode('[eventlist categories="4" start="$nextMonth"]');?>
    	<?php echo $nextMonth;?>
    Thread Starter bowenac

    (@bowenac)

    Ok finally got it in case anyone else every wants to know how to do that… Im still learning php so 🙂

    <?php
    $firstDayNextMonth = date('Y-m-01', strtotime('next month'));
    echo $firstDayNextMonth;
    ?>
    
    <?php echo do_shortcode('[eventlist categories="4" start="' . $firstDayNextMonth . '"]');?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Start Next Month?’ is closed to new replies.