Support

Home Forums Event Espresso Premium Some shortcodes aren't working

Some shortcodes aren't working

Posted: August 2, 2012 at 8:49 pm

Viewing 3 reply threads


ddeschner

August 2, 2012 at 8:49 pm

Hello,

I seem to be having a problem with just some types of shortcodes on my website. While most of them seem to work (like [EVENTLIST]) there are a couple which do not (like [EVENT_TIME event_id=1 type=start_date format=F jS]). It appears as though they are recognized as shortcodes, they simply don’t show any data.

I have tried deactivating all of my plugins, but the problem persists.

I set up this example page to illustrate the problem: http://yycomedy.ca/shortcodes/

Any thoughts on why one would work and another wouldn’t?

-Donovan


Josh

  • Support Staff

August 3, 2012 at 7:44 am

This will be fixed in the next update. For now, you can open up /wp-content/plugins/event-espresso/includes/shortcodes.php and make this edit:

On line 174 it reads:

espresso_event_time($event_id, $type, $format);

change it to:

echo espresso_event_time($event_id, $type, $format);


ddeschner

August 6, 2012 at 4:51 pm

Thanks, Josh. That did indeed fix the problem.

Should I make a note to double-check the functionality after the next update?


Josh

  • Support Staff

August 6, 2012 at 6:43 pm

The changes have been committed to Event Espresso 3.1.26.P, but it doesn’t hurt to check.

Viewing 3 reply threads

The support post ‘Some shortcodes aren't working’ 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