- This topic has 2 replies, 2 voices, and was last updated 9 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › How to change default users sorting in shortcode [emember_extended_summary]
Hi,
It seems that by default users are listed by date of their adding to wp eMember when using this shortcode:
[emember_extended_summary_list fields=”last_name,first_name,company_name”]
Is ther any way to display them in order by their last name? without user clicking on the list header?
I’ve tried this one
[emember_extended_summary_list fields=”last_name,first_name,company_name,Titre” orderby=”last_name” order=”desc”]
but it does’t seem to work
Grazyna
You could make a navigation link (or where you have the link that takes the user to the summary list page) that uses an URL like the following:
your-domain.com/summary-page-url/?orderby=last_name&order=asc
When someone clicks on that link to go to the listing page, it will short the profile list by “last name”.
Thanks!