Support » Plugin: Events Manager » Shortcode [events_list_grouped] sort by date desc

  • Resolved benlwong

    (@benlwong)


    I would like to sort the past events by start date descending group by year (also descending). I have tried

    [events_list_grouped mode=”yearly” scope=”past” orderby=”event_start_date” order=”desc”]
    event list here…
    [/events_list_grouped]

    but it appears it is sorting the group descending (e.g. 2013, 2012), but the events inside is not sorted with the latest first.

    Ben

    http://wordpress.org/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    try something like this

    [events_list_grouped mode="yearly" limit=0 scope="past" orderby="event_start_date" order="DESC"]
    
    ......
    
    [/events_list_grouped]

    noticed that order DESC is in uppercase

    benlwong

    (@benlwong)

    Thanks. Not sure why DESC has to be uppercase. Also, what does limit=0 do?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    limit=0 means no limit – you can also try limit=10 pagination=1

    benlwong

    (@benlwong)

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode [events_list_grouped] sort by date desc’ is closed to new replies.