heldercervantes Posted April 18, 2016 Share Posted April 18, 2016 Hi guys. Can't find this info anywhere. I'm trying to use the multipage values to do a search function. There are tours on this project, and location of options on a via page select. Like tags: "downtown, old town, beach...". On the search field, the admin selects one or many. On the frontend, the user can select whichever wanted, and output tours that have at least those options selected. My query looks like this: template=tour, (where~=1041 || where/~=1042) But it doesn't understand the ~= How do I get around this? thanks, H Link to comment Share on other sites More sharing options...
LostKobrakai Posted April 18, 2016 Share Posted April 18, 2016 ~= is only for textfield matching, a.k.a. matching inside of a single block of text. For multi-value fields just use = and it'll find you all pages holding that value in the field. Link to comment Share on other sites More sharing options...
heldercervantes Posted April 18, 2016 Author Share Posted April 18, 2016 Thanks LostKobrakai. I was assuming = meant exact match. Link to comment Share on other sites More sharing options...
LostKobrakai Posted April 18, 2016 Share Posted April 18, 2016 See it like that: It is a exact match. It's just that there may be other possible matches as well. To match a field which has only a specific value even though it's mutli-value you'd need to use something like that "field=$id, field.count=1". Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now