Support

Home Forums Event Espresso Premium Event list short codes

Event list short codes

Posted: August 4, 2016 at 12:25 pm

Viewing 1 reply thread


Susan Pastuzyn

August 4, 2016 at 12:25 pm

I have a page with the code [ESPRESSO_EVENTS]. When you go to the page it shows a few events and at the top of the page there is a “more” button.

When you click the “more” button, it brings you to a page with one event on it, and then there are arrows at the top to go to the next or previous event.

The problem is that when you click those arrows, it shows past events (as well as future). How can I have it only show future events?

I tried changing the code on the page to [ESPRESSO_EVENTS show_expired=false] but that made no difference. Is there a different page where the shortcode is?

Thanks!
Susan


Josh

  • Support Staff

August 4, 2016 at 12:41 pm

Hi Susan,

It turns out that those next and previous post links are added and controlled by your WordPress theme. If they are coded to use WordPress next/previous post functions, they can be overridden so they are ordered similarly to your event list. This change does require adding a bit of code, and there’s some readymade code in this gist:

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

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

Viewing 1 reply thread

The support post ‘Event list short codes’ 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