WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] events_list_grouped shortcode and orderby for events (5 posts)

  1. trothmaster
    Member
    Posted 1 year ago #

    Hello, I'm using the events_list_grouped shortcode and I want to display the events (not the groups) by name instead of time. If I add orderby to the shortcode it orders the group instead of the individual events under each group. I want to just order the events and leave the group order default.

    I saw another post which seems to be a similar issue but I am unclear on how to implement that with a shortcode?
    http://wordpress.org/support/topic/plugin-events-manager-break-up-show-events-per-datedate?replies=19

    here is my current shortcode.
    [events_list_grouped mode="daily" date_format="l, F j" limit="7"]
    #_EVENTLINK

    [/events_list_grouped]

    Thanks!

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

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    How about adding

    orderby="event_name,event_start_date" order="ASC"

    to the shortcode?

  3. trothmaster
    Member
    Posted 1 year ago #

    If I do that, it changes the order of the "groups"...I want to keep the groups in order by day and only change the order of each event listed under the group....

    Thanks for the reply!

  4. agelonwl
    Member
    Posted 1 year ago #

    try using em-template-tags.php at around line 81-160

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    you'd have to copy that code and make your own solution, i.e. for each group, get the list of events into an associative array where key=name and order it that way.

    looking again at how that works it's not possible to do ordering using search attributes, otherwise we can't group events chronologically in an efficient manner.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic