Events Made Easy Forums Bug fixed or feature request implemented Can’t sort on multiple fields if first field is a custom field

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #64488
    Anonymous
    Inactive

    Hi,

    I’m having trouble sorting an output. I can sort on multiple fields, but when I add a sort on a custom field (which I set as searchable/sortable), sorting will only be on the custom field.

    This works:
    [eme_people group_id=9 template_id=1 order="LASTNAME, FIRSTNAME"]

    This only sorts on the custom field; the others are ignored:
    [eme_people group_id=9 template_id=1 order="FIELD{Board position} DESC, LASTNAME, FIRSTNAME"]

    Thank you for your help.
    Bruce

    #64489
    Franky
    Keymaster

    I’m pretty sure it doesn’t order on custom fields, as I don’t take that into account. Ordering currently only works for regular db fields in the “order” option.

    #64496
    Anonymous
    Inactive

    Ah, so I see. The “sortable” option in custom fields has to do with the admin interface only. I’ll revert to what I had originally planned on doing doing. Meanwhile, maybe you can consider this a feature request.

    Thank you.

    #64506
    Franky
    Keymaster

    This should now work, see this changeset:
    https://plugins.trac.wordpress.org/changeset/2766933/

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top