Support

Home Forums Event Espresso Premium echo do_shortcode

echo do_shortcode

Posted: June 7, 2014 at 11:38 am

Viewing 1 reply thread


Heather Wentler

June 7, 2014 at 11:38 am

I tried adding <?php echo do_shortcode('[ESPRESSO_EVENTS]');?> to a template file, but the events list does not appear. Do shortcodes work in templates for EE4


Josh

  • Support Staff

June 9, 2014 at 2:12 pm

Hi Heather,

It turns out that the [ESPRESSO_EVENTS] shortcode currently cannot be loaded from a do_shortcode. This may change in a later release, but for now you can call a method directly inside a page template to query to display a list of events.

Here’s a link to a gist that shows one example:

https://gist.github.com/joshfeck/e3c9540cd4ccc734e755

Viewing 1 reply thread

The support post ‘echo do_shortcode’ 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