WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Shortcode [events_list_grouped] sort by date desc (5 posts)

  1. benlwong
    Member
    Posted 10 months ago #

    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/

  2. angelo
    NetWebLogic Support
    Posted 10 months ago #

    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

  3. benlwong
    Member
    Posted 10 months ago #

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

  4. angelo
    NetWebLogic Support
    Posted 10 months ago #

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

  5. benlwong
    Member
    Posted 10 months ago #

    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic