I’m setting up a user directory for my level 4 members which I’ve called staff - hence it will be a staff directory as such. I’ve mostly been okay with customizing this so far, but am running into a little bit of wall.
In cases where I’m using “search”, other parameters seem to get ignored.
Example 1: In this example, in one area I’ve used the shortcode twice in an attempt to list two specific users at the top via the “include” parameter, which works fine. In the second instance, I listed those same two users as part of the “exclude” parameter, and set the search to “SMM”, which is a custom profile registration field I set up. However, the exclude parameter in the second instance gets ignored, so those two users end up getting listed twice since they also belong to the SMM custom profile registration field.
[s2Member-List levels=“4” orderby=“last_name” order=“ASC” template=“themes/alpha/modules/my_members.php” avatar_size=“90” show_fields=“Title:gs_title_eng, Dept:gs_department” include=“859,1077” /]
[s2Member-List levels=“4” orderby=“last_name” order=“ASC” template=“themes/alpha/modules/my_members.php” avatar_size=“90” show_fields=“Title:gs_title_eng, Dept:gs_department” exclude=“859,1077” search=“SMM” /]
Example 2: A little bit simpler of an example.
[s2Member-List levels=“4” orderby=“last_name” order=“ASC” template=“themes/alpha/modules/my_members.php” avatar_size=“90” show_fields=“Title:gs_title_eng, Dept:gs_department” search=“COMM” /]
Having set the Search parameter to COMM (another custom profile reg field), the “order” parameters are ignored. The results returned are not in ascending order by last_name, as specified in the query.
Any advice would be appreciated.