Filter with partial values or wildcards
-
Hi there
I am setting up user lists with many meta fields one of which is postcode (UK format)
I am excluding some roles so the list shows only certain types of users
I have another user role (not induced in the list) that I want to allow to see pre-filtered user lists that I want to filter on user meta postcode field
However, I need the postcode field filter to work on part values – for example, for a postcode BN1 4GF, I want the user to show in the filtered list that has BN as its filter.
End result, user of role 1 views a page showing a list of users with role 2 that partially match a postcode.
I also need to pass multiple filters to same list.
all this is because I have a set of users who oversee a segment of another set of users, based on postcodes – but multiple prefixes.
So User in Role A has an array of postcode prefixes that he is responsible for (TN, BN, SO, PO) – these are stored in a custom meta field or fields.
User A needs to see a list of Users in role B that match any of the Postcode prefixes that are stored in user A meta
Hope this makees sense
I have spent time reading your docs and the support forum and cannot see how to achiev this although I feel it might be possible with the AMR pro plugin or and / or some custom code
thanks a lot
joe
- The topic ‘Filter with partial values or wildcards’ is closed to new replies.