• Is there a way in the shortcode events_list to grab the upcoming events that still have available spaces available? I could not find it anywhere in the documentation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you are using just [events_list], the output will be according to your settings in the EM settings page, without the possibility for a filter. It does basically the exact same thing as “CONTENTS” in your events page.

    But using the full shortcode, you can change that output:
    [events_list scope="future"]{has_spaces}...The rest of your mark-up per event...{/has_spaces}[/events_list]
    Note though, that using the opening and closing tags you will need to put the mark-up between them -> it will not be taken from the settings anymore. Easiest is to simply copy/paste.

    Thread Starter alieneila

    (@alieneila)

    Yeah not looking for a formatting with the tokens… more of a filter in order to skip the listings that no longer have available seats. Basically I’m using this code…
    [events_list scope=future limit=1]{is_future}#d-#m-#Y 09:00:00{/is_future}[/events_list]
    to generate a date format to use in a countdown timer. If the event is out of available spaces, I’d like to show the next event that has spaces.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Events List – Available Spaces’ is closed to new replies.