WordPress.org

Ready to get started?Download WordPress

Forums

Ajax Event Calendar
[resolved] Start calendar in specific month (4 posts)

  1. myroxie
    Member
    Posted 1 year ago #

    I'm making a calendar for a reunion week that begins and ends in May-June. The audience is very unsavvy technically, and may not be able to figure out how to advance the calendar to the month where all the activities are listed. \

    Is there a way to set it up so that it opens to May, 2013?

    Also, I can no longer get the [eventlist] shortcode to display all the events on the calendar. I entered it in html view, and an event list shows up, just not the same list as is entered in the calendar. I have removed the Events view page so it's nowhere to be seen at the moment (because it didn't work). http://bmcreunion50-1963.com/reunion-details/calendar/

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

  2. mishagos
    Member
    Posted 1 year ago #

    I did this by modifying the defaults in the ajax-event-calendar.php file around line 681 (below). I changed the month and year to set values. I also set the nav and views properties. You may have to redo this if the plugin is updated...

    function render_shortcode_calendar($atts) {
    extract(shortcode_atts(array(
    'categories' => '',
    'excluded' => 0,
    'filter' => 'all',
    'month' => 6,//date('m'),
    'year' => 2013,//date('Y'),
    'view' => 'month',
    'views' => '',//month
    'nav' => null,//'prev,next, today',
    'height' => '',
    'scroll' => 0,
    'mini' => 0
    ), $atts));

  3. Eran Miller
    Member
    Plugin Author

    Posted 1 year ago #

    No need to change the code, see the options documentation.
    https://code.google.com/p/wp-aec/wiki/ShortcodeOptions

  4. myroxie
    Member
    Posted 1 year ago #

    Thank you. Elegantly simple.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic