Sort Members Directory By Last Name?
I’ve been trying to get a Members Directory to sort by last name, but have had no luck. Any help would be much appreciated.
The directory is here: http://220.127.116.11/~newfeldenkrais/practitioner-search/results/
The search (http://18.104.22.168/~newfeldenkrais/practitioner-search) is powered by the plugin BP Profile Search, but is displaying on the default members page.
WP – Version 4.7.5
BP – Version 2.8.2
BP Profile Search – Version 4.7.6
I’ve tried various solutions that I was able to find on Google with no luck, the most recent solution I could find was here: https://buddypress.org/support/topic/custom-searchfilter-based-on-custom-field/
It looks like that solution is looking for the space between the First Name and Last Name to target the last name, but BuddyPress seems to be grabbing the “nicename”, which has no space. So, it isn’t able to target the space for me?
- You must be logged in to reply to this topic.