Posted: January 9, 2014 at 10:53 am
|
Our calendar has been running on the homepage for nearly a year now. Today out of the blue it has disappeared. We did update two plugins yesterday and to rule those out I deactivated them. Neither proved to be the issue. The calendar is being called using do shortcode in the theme file. I did try and place it into one of the editable wysiwyg areas on the homepage and it didn’t work. The calendar shortcode does work on inside pages. Other things I have tried are setting the show expired events to false and removed the show expired events portion all together. I also updated both event espresso and the event calendar plugins. Then deleted the event calendar plugin and redownloaded it from this site and uploaded it. Please help. I’m not sure why it stopped working. I am also getting this error in my debug.log if it helps. PHP Strict Standards: Only variables should be passed by reference in …/public_html/wp-content/plugins/espresso-calendar/espresso-calendar.php on line 703 |
|
Hi Chris, Since we updated the calendar recently it has affected the use of the do_shortcode for the calendar in certain themes. If you check out this documentation it explains what you will need to do (just a copy and paste of some code into the template) – https://eventespresso.com/wiki/calendar/#shortcode-page-template If you need any further help, just let me know! |
|
Thanks for the quick response Dean. <code><?php global $is_espresso_calendar; $is_espresso_calendar = TRUE; ?></code> just above my do_shortcode but it still isn’t working. When I view source I still just get: <code><div id="espresso_calendar" class="calendar_fullsize"> <div id="ee-calendar-ajax-loader-dv"> <img id="ee-calendar-ajax-loader-img" class="ee-ajax-loader-img" style="display:none;" src="http://aiec.coop/wp-content/plugins/event-espresso/images/ajax-loader-large.gif"> </div> </div> <div style="clear:both;" ></div> <div id="espresso_calendar_images" ></div> </div> </div></code> |
|
Sorry hopefully this code is readable <pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”><?php <pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”><div id="espresso_calendar" class="calendar_fullsize"> </div> |
|
Sorry, can you try adding the code snippet to above the get_header() function in the page template and see if that works? That was mentioned in our internal ticket, so if that works I’ll get that document updated. |
|
Awesome that did it. Thank you so much for your quick and helpful response. |
The support post ‘Calendar disappeared on our homepage’ 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.