Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › Change default sort order to "Last Name: Ascending" in eMember Profile Extended
Tagged: directory
- This topic has 12 replies, 4 voices, and was last updated 3 years, 10 months ago by ADFP.
-
AuthorPosts
-
October 23, 2015 at 6:25 pm #13204Linda BellParticipant
How can I change the default sort order on our Membership Directory page to Last Name (ascending)?
This is my shortcode: [emember_extended_summary_list fields=”last_name,first_name,phone,website”]
October 23, 2015 at 6:34 pm #71708Linda BellParticipantAlso, when someone clicks DETAILS is there a way to hide the Membership Directory when it opens on a (new) page so you don’t have to scroll all the way to the bottom of the page to see their information? It would be nice if it showed that Member’s info only.
October 24, 2015 at 1:36 am #71709adminKeymasterYou can create a link like the following which will sort the list by last name.
[http://example.com/member-directory/?orderby=last_name&order=asc]
When users click on this link to go to this page, they will see the sorted list.
The details page should open in a NEW Page (not the same page). You have a listing page and then you have a details page (they are 2 different pages). So I am not sure what you are talking about regarding the scrolling.
October 24, 2015 at 4:00 pm #71710Linda BellParticipantThat workaround solution (using a link) would work if the Details page only displayed the Member’s details. However…
The Details page displays the names in the original sort order again (based on the order in which their accounts were created, rather than by last name) and you must scroll to the bottom of that page to see the member’s details.
October 24, 2015 at 10:51 pm #71711adminKeymasterThe details page shows the details of ONE member only (the one you are viewing) so I am not sure how that can happen.
Let me check your pages.
1) Share the URL of the member list page (the page you created according to step 7).
2) Share the URL Of the details page (the page you created according to step 1).
October 25, 2015 at 4:25 pm #71712Linda BellParticipantThank you for your assistance!
I’m not sure what you mean by step 7 and step 1…
Here’s the Member list page: [http://www.asmac.org/membership-directory/]
Here’s the Member list page, sorted by last name, ascending: [http://www.asmac.org/membership-directory/?orderby=last_name&order=asc]
When you click on a member’s “Details” it displays the entire directory again – on a new page, in the default sort order – and the member’s detail is at the bottom of the page.
Did I configure something incorrectly? Is there a way to show just the member’s details on the Details page?
FYI: I am using the eMember Form Builder and eMembers Profile Extended addons together to create this directory.
October 25, 2015 at 11:30 pm #71713adminKeymasterThat’s wrong setup which is why you are having this problem.
What is the first thing you see when you go to the profile extended admin menu? You will see a section called “Usage Instruction”. It has 8 steps. Please follow those steps to setup the addon correctly.
The same steps are outlined in the documentation of this addon also:
https://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-profile-display-extended-addon-599
October 27, 2015 at 4:04 am #71714Linda BellParticipantAha! I had both shortcodes (Member List and Member Details) on the same page. Thank you for the assistance!
January 13, 2021 at 8:39 am #82280I know this is old, but I did not want to open the same question as a new topic. I read this answer:
You can create a link like the following which will sort the list by last name.
[http://example.com/member-directory/?orderby=last_name&order=asc]
When users click on this link to go to this page, they will see the sorted list.
I need this as a menu item not just a link. I have tried adding the link to my menu as a custom link, but it is not working. How can I do this as a menu item? I want the directory listed in ascending order by last name.
January 13, 2021 at 5:11 pm #82282wzpModeratorWhat theme or menu plugin are you using?
January 13, 2021 at 6:34 pm #82292adminKeymasterA custom link in your menu item should work fine. It is just a URL. What happens when you click on that link in the menu?
January 13, 2021 at 6:46 pm #82294I am using Astra Theme. When I click on the link in the menu the URL has turned to this: https://divorcefinancialplanner.org/member-directory-2/orderby=last_name&order=asc/ Notice that the ? in front of “orderby” is removed.
January 14, 2021 at 7:32 am #82295Looks like I got it to work with a redirect to the right URL.
-
AuthorPosts
- You must be logged in to reply to this topic.