Support

Home Forums Event Espresso Premium Shortcode suddenly showing way too much

Shortcode suddenly showing way too much

Posted: November 18, 2015 at 3:55 pm

Viewing 7 reply threads


Laurita Winery

November 18, 2015 at 3:55 pm

We’ve been using the [ESPRESSO_EVENTS] shortcode on our homepage for months with no issues, but today the list that we’ve grown so accustomed to seeing, looked completely different.

I’ve moved the shortcode to a test page that you can see here: http://lauritawinery.com/shortcode-test/

Images, all the date/times… none of that used to show.

Did something change that I need to be aware of?


Tony

  • Support Staff

November 19, 2015 at 6:10 am

Hi there,

Did you modify the templates used for the shortcode at all?

Do you have a custom loop-espresso_events.php template within your theme or within /wp-content/uploads/espresso/templates/?


Laurita Winery

November 19, 2015 at 7:19 am

Hello,

I just checked and we do not have a file named loop-espresso_events.php in /wp-content/uploads/espresso/templates/. In fact /templates/ is empty. Would this be the reason that our short code began showing weird?


Tony

  • Support Staff

November 19, 2015 at 8:23 am

No, you’ll only have templates there if you are loading custom template. You can do that from either the above location or from within your theme, I just wanted confirm you didn’t have a custom template that for some reason is no longer loading.

The details loaded within [ESPRESSO_EVENTS] haven’t changed for sometime, however the way in which we load them has.

The datetimes can be removed from the event list by navigating to Event Espresso -> Events -> Templates.

Within the event list section you’ll find ‘Display Datetimes’, set that to No and update the settings – http://take.ms/CBh0q

The feature image can either be hidden using CSS or if you prefer to use a custom template I can provide further details on doing that?


Laurita Winery

November 19, 2015 at 8:36 am

I think we had a custom template that is no longer being called, we cannot seem to locate it though. What would be the names of the files that the short code would call? Maybe we will be able to locate a backup of our file.


Tony

  • Support Staff

November 19, 2015 at 10:12 am

Previously it used:

loop-espresso_events.php

Which calls:

content-espresso_events.php

Which calls multiple different individual template files, but that is the file likely changed to remove specific details from the event list (within the is_archive() conditional)

However, if you go to /event-espresso-core-reg/public/Espresso_Arabica_2014/

There you will find content-espresso_events-shortcode.php

copy that file and place it within your child theme.

Open that file up and within the is_archive() conditional (which is for the event list) comment out, or remove the line of code that calls the featured image.

Then refresh your page that is using ESPRESSO_EVENTS and the feature image should have been removed.


Laurita Winery

November 19, 2015 at 7:16 pm

I basically rewrote content-espresso_events-shortcode.php after I moved it into the wp-content/uploads/espresso/templates/ directory and was able to get it back to normal.

Thanks for the assist!


Tony

  • Support Staff

November 20, 2015 at 3:39 am

You’re most welcome 🙂

Have a great weekend.

Viewing 7 reply threads

The support post ‘Shortcode suddenly showing way too much’ 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