• When sorting by last name, I’m getting a result that looks like this:
    Edwards
    Edwards
    Farley
    Ertel
    Fagin
    etc.

    There’s inconsistent results when I sort by other things like display name as well.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @mywebmaestro

    Could you please try this code snippet to fix the sort by display name?

    add_filter("um_modify_sortby_parameter","um_060122_sortby_parameter", 10, 2 );
    function um_060122_sortby_parameter( $query_args, $sortby ){
        
        $query_args['orderby'] = array( 'display_name' => 'DESC' );
       
        return $query_args;
    }

    You can add the code to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code.

    Thread Starter mywebmaestro

    (@mywebmaestro)

    Actually, I’ve been poking at it and it seems related to the CSS display. When in list view it shows correctly, but in grid is when it’s out of order. Some member “cells” are taller than others, due to either having a phone # to display or not… it appears to be the height that is throwing things out of order in some way.

    Hi @mywebmaestro,

    Please check this if Equaling the profile card height in Member Directory will help solve the issue.

    Thread Starter mywebmaestro

    (@mywebmaestro)

    I thought about adding some CSS myself to do something similar, but then you’d have content not fitting into some of the spots. You’d have to pix a height tall enough to fit the largest one, and have a lot of empty space in the rest.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @mywebmaestro

    What happens when you make the window small and then return to the default window size? Does it fix the grid automatically?

    Thread Starter mywebmaestro

    (@mywebmaestro)

    I hadn’t tested for it specifically, but in moving things around I did not see that happen, no. Right now we’ve removed the phone # from the initial page, just showing email address, so everyone’s is the same height and things work. If they want to include additional information at some point, I will specifically test what you mentioned here and report back.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Thanks for letting us know. Looking forward to your report.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sorting is broken’ is closed to new replies.