Support

Home Forums Event Espresso Premium [ESPRESSO_EVENTS] short code not showing

[ESPRESSO_EVENTS] short code not showing

Posted: September 18, 2024 at 3:48 am

Viewing 7 reply threads


Arty-Folks

September 18, 2024 at 3:48 am

[ESPRESSO_EVENTS] does not work when inserted on any newly created pages.
It works on existing pages apart from the required page: https://arty-folks.org.uk/whats-on/ (this is the main problem we’re wanting to fix).

Other short-codes from other plugins work okay.
Server capacity is about 90%.

Important information:
WordPress Version: 6.5.5
PHP Version: 7.4.33
MySQL Version: 8.0.39
Event Espresso Version: 5.0.26.p
WordPress Address (URL): https://arty-folks.org.uk
Site address (URL): https://arty-folks.org.uk


Tony

  • Support Staff

September 18, 2024 at 4:56 am

Hi there,

Is [ESPRESSO_EVENTS] the correct shortcode here?

I can’t see any output from that shortcode (even when its not working we would usually see with the shortcode output directly to the page or some additional wrapped elements within the page).

I can see some output from [ESPRESSO_CALENDAR] so I’m guessing its that one?


Arty-Folks

September 19, 2024 at 4:15 am

Yes, that’s correct! My apologies. It’s not loading [ESPRESSO_CALENDAR]


Tony

  • Support Staff

September 19, 2024 at 5:23 am

Ok, so as your using a page builder, EE can’t detect that the calendar shortcode is in use within that page so it’s not loading the asset for the calendar. The shortcode is working/parsing in the background but the JavaScript files to load the calendar aren’t loaded.

To fix this and load the assets on the above page, add this snippet to your site:

https://gist.github.com/Pebblo/c029293f6b048a1de2d42e19423c6d97

You can add that to a custom functions plugin on your site:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Arty-Folks

September 20, 2024 at 8:56 am

Hi Tony, I’ve put the snippet in to the website but unfortunately it’s still not displaying, is there anything else you can suggest?


Tony

  • Support Staff

September 20, 2024 at 9:30 am

The assets still still aren’t loading, where did you add that snippet?

Change this line:

if ( class_exists( 'EED_Espresso_Calendar' ) && is_page( 'whats-on' ) ) {

To be:

if ( class_exists( 'EED_Espresso_Calendar' ) ) {

What happens then?


Arty-Folks

September 21, 2024 at 4:35 am

I’ve uploaded it into our WPCODE plugin as a new PHP snippet.

I’ve also tried it with the replacement code you gave and unfortunately it still isn’t loading.


Tony

  • Support Staff

September 23, 2024 at 7:32 am

Hmm, strange.

Can I take a look at this?

I could be the WPCODE plugin is loading too late in the request to fix this so the code may need to be added within an actual hardcoded plugin rather than a plugin that loads snippets from the database.

If you can send me WP-admin and FTP credentials I’ll take a look at this.

You can send those over using this form:

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

Viewing 7 reply threads

The support post ‘[ESPRESSO_EVENTS] short code not showing’ 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