Hi guys.
I am trying to find the right shortcodes for S2Member Pro to achieve my goal for a member search page. My requirement is not straight out of the knowledge base options and my knowledge of shortcodes is very limited, hence my question here asking for help!
I am creating a search facility for ex-pupils of a school to find friends. I have asked in a custom field for permission to share a member details with other members, in case they don’t want to, so I want a function which can display all members who have chosen to share their details, then with a search box allow them to search and display by last name, year of leaving the school, or country of residence,
I am stuck, but have the following:-
[s2Member-List-Search-Box /]
[s2Member-List enable_list_search=“yes” / s2member_custom_field_searching / orderby=“last_name” order=“ASC” / show_fields=“leaving_year,Country,email” / ]
The problems are:-
- how to only allow a person to be searched and included if a custom Boolean field is a “1”.
- the fact that with this code the list orders by last name correctly unless any search criteria are entered, when the “last name” order is ignored.
Grateful for any help in solving these two issues!
Many thanks
Andy