Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » [events_list_grouped] and orderby attributes

  • Resolved R-one

    (@r-one)


    Hi,

    firstly to understand my question here is the site: http://chineur06.r-one.info

    On the first page I use a list of a categorie for a month with :

    <ul>[events_list_grouped orderby="event_start_date,location_town" category="4" scope="month" mode="monthly" date_format="F Y"]<li>Le #l #j à <span style="font-weight:bold;"> #_TOWN</span> <NOBR>- #_EVENTLINK</NOBR></li><br />[/events_list_grouped]</ul>

    My problem is that the list is sorted by day but not cities “sub-sorting.”
    I wish I sort by date, then by cities in alphabetical order.

    But I think understood that here http://wp-events-plugin.com/documentation/shortcodes/ what events_list_grouped accept any of the event, location and general search attributes.

    orderby is a general attribute ?

    Thank you in advance to those bother to answer me, R-one

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • hi,

    yes, how about something like orderby=”location_town,event_start_date” with order=”ASC” or DESC ?

    Thread Starter R-one

    (@r-one)

    Sorry but it does not work, order = “ASC” is the default ascending.
    if I spend it in DESC always sorts the hours.

    I wonder if the function is well established in orderby [events_list_grouped] because apparently it really wants to sort by start time.

    To understand, here is what I want:

    – Day1 town1 start7am
    – Day1 town1 start8am
    – Day1 town2 start7am
    – Day1 town2 start8am
    – Day1 town3 start7am

    And this is what I always get:

    – Day1 town1 start7am
    – Day1 town2 start7am
    – Day1 town3 start7am
    – Day1 town1 start8am
    – Day1 town2 start8am

    Thank you very much for taking the time to try to reply

    Thread Starter R-one

    (@r-one)

    Ok,

    in em-template-tags.php at the line 87 we have :

    $args['orderby'] = 'event_start_date,event_start_time,event_name'; // must override this to display events in right cronology.

    maybe the problem is there?

    Thread Starter R-one

    (@r-one)

    Here i found !

    Just replace with :
    $args['orderby'] = 'event_start_date,location_town,event_start_time,event_name'; // must override this to display events in right cronology.

    The problem now is that strike at the heart of the plugin.

    Can be done in a filter template to modify it? I do not know what kind of manipulation.

    I don’t like make changes other than the template that could jump to any update.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    see this page, you can see how it hooks in to change arguments just like you have there – http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/

    Thread Starter R-one

    (@r-one)

    Thank you for your response and your work Marcus !

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[events_list_grouped] and orderby attributes’ is closed to new replies.