The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. trothmaster
    Posted 3 years 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?

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




  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    How about adding

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

    to the shortcode?

  3. trothmaster
    Posted 3 years 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
    Posted 3 years ago #

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

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years 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

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic