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
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.