Support

Home Forums Event Espresso Premium Shortcode issue

Shortcode issue

Posted: December 10, 2024 at 2:59 pm

Viewing 13 reply threads


NSA Austin

December 10, 2024 at 2:59 pm

Hi,

I can’t get the shortcode [ESPRESSO_EVENTS limit=1] to appear correctly on my home page https://nsa-austin.com/. I want just the featured image, title and date/time listed with a button to go to the event. Instead, the entire event posting is showing. What am I missing?


NSA Austin

December 18, 2024 at 10:31 am

Anyone???


Tony

  • Support Staff

December 18, 2024 at 11:08 am

Hi there,

My apologies for missing your thread.

The [ESPRESSO_EVENTS] shortcode uses the global event list settings, so if you go to Event Espresso -> Events -> Templates (tab)

You’ll find a section for ‘Events List Pages’

You will need to disable the ticket selector there.

Set the ‘Display Description’ option to either none and ‘Display Datetimes’ to yes, then save.

Does that change the output to the above?


NSA Austin

December 18, 2024 at 11:31 am

Thank you for getting back to me. Those are the setting I was previously using. I use EventEspresso for a few other associations I work with and the shortcode is acting in the way I expect, so I know the shortcode is sound. The Events page- https://nsa-austin.com/events-list/- is behaving exactly as we need it to. The issue is that the section on our home page is supposed to just show the featured image, event title, and view details button- now shows the complete event listing. https://nsa-austin.com/ The full event description and the ticket selector previously were not shown on the homepage using the shortcode.


NSA Austin

December 18, 2024 at 4:41 pm

This may be unrelated, but now I am having a issue with the tickets for my events. I have a few different types of tickets listed (Member, partner, guest). No matter which type of ticket you select, you are taken to the partner ticket (higher cost). And, when you try to check out the registration page is stuck- you can’t get to the payment screen.


Tony

  • Support Staff

December 18, 2024 at 6:36 pm

The full event description and the ticket selector previously were not shown on the homepage using the shortcode.

Yeah, that’s really strange! I can’t reproduce that so something weird is going on on the site itself there.

Your using Divi, right?

How are you adding the shortcode to the page?

No matter which type of ticket you select, you are taken to the partner ticket (higher cost).

That can pretty much only be caused by caching as far as I’m aware.

Any caching plugins?

Caching server?

Which host are you using?


NSA Austin

December 19, 2024 at 7:55 am

Yes, I am using Divi on the site. To add the shortcode, I am using the Code Module.

On the ticket selection issue- I cleared the cache on the site and went and cleared the server side as well (host is BlueHost). After doing that, I got the Member ticket at the Member rate and the sale went through. When I selected the guest rate, I got the Member ticket.


NSA Austin

December 20, 2024 at 8:30 am

Hi- I hate to push, but I am about to be off for a week and am concerned about ticket sales (or lack of) while I am away. Any additional thoughts on what I can do to fix my ticket selection issue? And, would you prefer that I move this to a new thread since it’s a different issue?


Tony

  • Support Staff

December 20, 2024 at 8:38 am

Same thread for this is fine.

On the ticket selection issue- I cleared the cache on the site and went and cleared the server side as well (host is BlueHost).

Cleared that caching within which plugin?

Just clearing the caching won’t fix the problem; it’ll just clear the current cache, and then it’ll happen again on the next request once it’s cached.

You’ll need to exclude EE from caching enabled on the site:

https://eventespresso.com/wiki/setup-nocache-exclusion-rules-event-espresso/

What type of caching is enabled on BlueHost?

You can exclude EE from caching within Bluehost follow their docs here:

https://www.bluehost.com/help/article/wordpress-caching

I’ve been digging into the shortcode issue but so far I can’t reproduce it, do you have custom EE template files within a child theme at all?


NSA Austin

December 20, 2024 at 8:55 am

Thank you for getting back to me so quickly. I am going to work on the caching instructions you sent. The server side cache clearing is just a button on their site that I click. Maybe that also gives you some insight on my abilities. πŸ™‚

I did just discover that we have a pretty outdated PHP version – 7.4. Is this part of our issue?


Tony

  • Support Staff

December 20, 2024 at 9:33 am

No, this wont be related to the PHP version.

You can’t cache eCommerce requests like Event Espresso, caching works by basically resuing previous request so you don’t have to do all of the processing each time. But for eCommerce each request is unique… your event selection is different from mine etc.

So caching needs to be disabled one EE’s pages for it to work or you’ll keep running into the above.

I’m guessing you don’t have FTP credentials for the site?


NSA Austin

December 20, 2024 at 11:25 am

I realized after I went through your links that I had no control over the cache clearing- it was all or nothing. So, I installed a cache plugin and was able to exclude the EE pages. And… it worked!! Thank you so much for your help!


Tony

  • Support Staff

December 20, 2024 at 11:38 am

Awesome πŸ™‚

I’m glad that worked for you.

So… now back to your original shortcode issue πŸ™‚

Is [ESPRESSO_EVENTS limit=1] the full shortcode you are using?


NSA Austin

December 20, 2024 at 11:49 am

Yes- now I can breathe again. πŸ˜‰

Yes- that is the full shortcode I am using.

Viewing 13 reply threads

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso