I saw a potentially similar question, but I'm wondering if mine is simpler.

I need to search for entries based on a match of a Multi-Select field. So, say if a user has a Tier of "TB" and an entry has a Muli-Select value of the options TB,B,P then the entry should be found. Likewise for an entry with the options G,A,P should not be found.

Here's my query at the moment

{% set query = 'eventRegion::"' ~ currentUser.userPabRegion ~ '" eventTier:"' ~ currentUser.userPabTier ~ '"' %}

{% paginate craft.entries.search( query ).sectionId( module.eventsModuleChannel ) as events %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.