Member Directory Sorting

Is it possible to allow the user to sort by column headings and default to sorting by last name alphabetically? I think it sorts now by USERID and that’s not intuitive.

You can sort by last name by using the orderby="lastname" attribute in your shortcode. There is no way (without significant custom code) to allow the viewer to sort by column heading.

Thanks. Using this shortcode and not seeing anything -->

[s2Member-List levels=“3” orderby=“lastname” show_fields=“user_email,company,title”]

Am I doing something wrong?

Sean Rose
Sweet Rose Studios
sean@sweetrosestudios.com | (855) 969-5509
Visit us @ sweetrosestudios.io
https://sweetrosestudios.com/?utm_source=Gmail&utm_medium=Email&utm_campaign=SeanSignature

Try including the lastname in “show_fields”. Honestly, I’m just guessing but that would be my next step.

Thanks. When I order by last name, it’s doing it in reverse alphabetical
order … any idea how to flip that?

http://nacephilly.wpengine.com/about/directory/

Sean Rose
Sweet Rose Studios
sean@sweetrosestudios.com | (855) 969-5509
Visit us @ sweetrosestudios.io
https://sweetrosestudios.com/?utm_source=Gmail&utm_medium=Email&utm_campaign=SeanSignature

Try order="ASC" or order="DESC" in conjunction with the orderby parameter.

Add order="ASC" to your shortcode.

I had the same issue and found that this needs to be orderby=“last_name”