Support

Home Forums Event Espresso Premium Bug with multiple instances of shortcode

Bug with multiple instances of shortcode

Posted: March 8, 2016 at 7:19 am

Viewing 5 reply threads


miha

March 8, 2016 at 7:19 am

Hi,

I have 3 instances of shortcode on my page, each with different category.
I would like to display only the last one from each category, but when I insert a limit=”1″ in the shortcode, the 3 columns change into showing the same category (Art) in all instances of the shortcode. This is the result: http://roodkapje.org/2016/

This is the shortcodes used:
[ESPRESSO_EVENTS category_slug=”Art”, limit=”1″]
[ESPRESSO_EVENTS category_slug=”Event”, limit=”1″]
[ESPRESSO_EVENTS category_slug=”Food”, limit=”1″]

I guess this could be avoided by disabling the pagination but I don’t know how to do that with the [ESPRESSO_EVENTS] shortcode.


Josh

  • Support Staff

March 8, 2016 at 7:26 am

Hi Miha,

If you use the customizer to preview another theme while viewing the the page with that shortcode, does the get corrected?


miha

March 8, 2016 at 7:36 am

Hi Josh,

unfortunately no, it’s still displaying the same events. I use twenty sixteen with child theme


Josh

  • Support Staff

March 8, 2016 at 7:36 am

Actually, you know what? On closer look, those commas are not valid. So you can fix this by changing your shortcodes to read as:

[ESPRESSO_EVENTS category_slug=Art limit=1]
[ESPRESSO_EVENTS category_slug=Event limit=1]
[ESPRESSO_EVENTS category_slug=Food limit=1]

Note that the commas and quotes have been removed.


miha

March 8, 2016 at 7:41 am

Sweet, it works! Thanks a lot!

Best,

Miha


Josh

  • Support Staff

March 8, 2016 at 8:40 am

You’re welcome Miha.

Viewing 5 reply threads

The support post ‘Bug with multiple instances of 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