• Hi.

    As requested in the subject, I would like to know if it’s possible to display a list of future events first ordered from nearest to farthest, followed by past event from the oldest to the most recent?

    If yes, how can I do, please?

    TIA.

    Pierre.

    • This topic was modified 7 years, 9 months ago by Pierre_02.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try to use shortcode

    [events_list limit=10 pagination=1 scope="all" order="DESC" orderby="event_start_date" ]

    in your wp page or post

    • This reply was modified 7 years, 9 months ago by angelo_nwl.
    Thread Starter Pierre_02

    (@pierre_02)

    Hi angelo.

    Yes but by doing that I order ALL my events by “event_start_date” descending, but I need to dysplay futures events, from most recent to oldest, AND past events from older to most recent (a reverse order in fact for the two kinds of events).

    TIA

    Pierre

    I think you’ll need to use two separate [events_list] shortcodes, one with the scope set to past and one set to future to do this.

    Thread Starter Pierre_02

    (@pierre_02)

    Hi caimin.

    Ok. I was thinking about it, but by doing that I’ll got paginations problems, no?

    TIA

    Pierre.

    Yes, that’s true. The only way to avoid that would be to create your own custom query the gets and orders the results in the order you want to display them.

    Thread Starter Pierre_02

    (@pierre_02)

    Ok. Thanks for the quick support caimin :). I will find an other track ;)…

    Amicably,

    Pierre.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Possible to display futures events first followed by past events?’ is closed to new replies.