So I have a collection called our-team and I have a fieldset called teammate.yaml which contains at least 10 or more fields, but I'll only list the one that I am trying to filter through, which is a suggest fieldtype that looks like...

practice_area:
        max_items: 1000
        create: true
        type: suggest
        display: 'Practice Area'
        multiple: true
        taxonomy:
          folder: our-team
          type: practice-area


and in the template I have

<div class="body-imaging list-wrap">
        <h2>Body Imaging</h2>
        {{ collection:our-team }}
            {{ theme:partial
                src         = "listings/teammate"
                use_context = "true"
            }}
        {{ /collection:our-team }}
      </div>
</div>


That works, but pulls all the listings under our-team collection.

I'm trying to filter out the collection by a suggest keyword that contains "Body Imaging", so I tried...

<div class="body-imaging list-wrap">
        <h2>Body Imaging</h2>
        {{ collection:our-team practice_area:contains="Body Imaging"}}
            {{ theme:partial
                src         = "listings/teammate"
                use_context = "true"
            }}
        {{ /collection:our-team }}
      </div>
</div>


But didn't work, is there something I'm doing wrong or is there a different approach?

Answered by Tam Pham! Go to answer.