Support

Home Forums Event Espresso Premium NEED TO HAVE CALENDAR & EVENT LIST ON SAME PAGE – DOESN'T WORK!!!

NEED TO HAVE CALENDAR & EVENT LIST ON SAME PAGE – DOESN'T WORK!!!

Posted: August 5, 2014 at 1:15 pm


siouchko

August 5, 2014 at 1:15 pm

Hello,

I am using EE4 on latest version of WP.

yesterday I had the calendar and event list on my home page. Today, after the updates, I am unable to get them to work properly. If I have both items, only one displays. When I delete the shortcode for one of them, the other displays.

Please help me fix this issue. Here is how I have it written, it’s very basic and supposed to work.

[column grid=”2″ span=”1″][ESPRESSO_EVENTS][/column]
[column grid=”2″ span=”1″][ESPRESSO_CALENDAR show_expired=”true”][/column]

this is the page:
http://paintingparty.ca

thank you!


Josh

  • Support Staff

August 5, 2014 at 2:42 pm

Hi there,

I can verify that 4.3.0 will not allow for both shortcodes to parse on the same page. I’ve created a ticket for a develop to look into what has changed.

In the meantime, I can outline a temporary solution that involves adding the calendar widget to the right side column on that page? Will that work for you? If so, I’ll write up a detailed how-to.


Josh

  • Support Staff

August 5, 2014 at 3:16 pm

Or if you’re comfortable with editing a line of code in the calendar add-on you could change line 75 of wp-content\plugins\EE4-calendar\EES_Espresso_Calendar.shortcode.php

from

EE_Registry::instance()->REQ->set( 'ee', 'calendar' );

to

add_action( 'pre_get_posts', array( EED_Espresso_Calendar::instance(), 'run' ));


siouchko

August 5, 2014 at 5:17 pm

hello,

I am not very good with scripting. I will try as you suggested, but I would prefer to have the old version of EE4 back, if this new version won’t allow me to place both shortcodes on the same page. I think that doesn’t make sense for them to be not allowed. This is very important for me to be fixed asap.


Josh

  • Support Staff

August 5, 2014 at 5:27 pm

Hi there,

Please be assured that there wasn’t any intent to disallow two the two shortcodes on the same page. This is something that we didn’t test for, and will be fixed in the next version of Event Espresso. If you do not feel comfortable with making the code edit, support staff can make the change for you if you send FTP credentials via this secure form:

https://eventespresso.com/send-login-details/


siouchko

August 5, 2014 at 5:31 pm

I tried that and it seems to be working for now. I will let you know later if I encounter any problems. How can i make sure this change remains in a future update?

thanks,
Lana


Josh

  • Support Staff

August 5, 2014 at 5:37 pm

The same change will be in the next update of Event Espresso. 🙂


Josh

  • Support Staff

August 19, 2014 at 12:07 pm

The issue reported in this thread has been fixed in the latest release, Event Espresso 4.3.1.p. 4.3.1.p adds a check so that if both shortcodes are on the same page, both will get parsed.

The support post ‘NEED TO HAVE CALENDAR & EVENT LIST ON SAME PAGE – DOESN'T WORK!!!’ 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