Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Display next month's calendar | Event Espresso - Staging Server

Support

Home Forums Calendar Display next month's calendar

Display next month's calendar

Posted: February 18, 2013 at 11:46 pm

Viewing 5 reply threads


cerulean

February 18, 2013 at 11:46 pm

I need to display the March calendar by default, when a series of events are occurring. I’ve found some suggestions for how to edit espresso-calendar.php to accomplish this but they seem to be outdated. Thanks for any suggestions.


Dean

  • Support Staff

February 19, 2013 at 8:47 am

Hi,

In the espresso-calendar.php go to line 850 (approx)

You should see

            });

</script>
<div id='espresso_calendar'></div>
<?php
        $buffer = ob_get_contents();
        ob_end_clean();
        return $buffer;
        //End calendar output
    }

}
add_shortcode('ESPRESSO_CALENDAR', 'espresso_calendar');

above this add

$('#espresso_calendar').fullCalendar('gotoDate', 2013, 2);

where 2013 = year and 2 = March (its based on binary so January is 0, February 1, etc)

That will send the calendar directly to March.


cerulean

February 19, 2013 at 9:24 am

That worked beautifully. Thanks so much.


Dean

  • Support Staff

February 19, 2013 at 10:01 am

No problem!


cerulean

February 20, 2013 at 10:44 am

Following up on this, I also need to make the calendar widget display the month where the events occur. How is this possible? Thanks


Dean

  • Support Staff

February 21, 2013 at 1:03 am

closed this thread as new thread started here http://staging.eventespresso.com/topic/calendar-widget-start-month/

Viewing 5 reply threads

The support post ‘Display next month's calendar’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso - Staging Server