Support

Home Forums Community Forum Wrong syntax in documentation page

Wrong syntax in documentation page

Posted: December 10, 2014 at 3:57 am

Viewing 1 reply thread


emarienborg

December 10, 2014 at 3:57 am

Hi!

Sorry for posting, I couldn’t find any way to edit the documentation page itself or suggest an edit, so I figured I’d post here. Feel free to delete this post if you’d like, once the page is fixed.

On this page:
https://eventespresso.com/wiki/ee4-shortcodes-template-variables/

Using shortcodes in template files is examplified like this:
<?php echo do_shortcode([ESPRESSO_EVENTS]); ?>

But this will break your entire page, outputing only a blank page.

The correct syntax should be:
<?php echo do_shortcode('[ESPRESSO_EVENTS]'); ?>

This also applies to the other examples of do_shortcode, of course.

Best wishes,
Eivind


Josh

  • Support Staff

December 10, 2014 at 8:27 am

Hi Eivind,

Sorry about that. Thanks for reporting this, the documentation has been fixed.

Viewing 1 reply thread

The support post ‘Wrong syntax in documentation page’ 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