ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

one list of results from two "search:custom_field" queries

September 30, 2011 2:23pm

Subscribe [3]
  • #1 / Sep 30, 2011 2:23pm

    Marc Debiak

    36 posts

    I need to list a series of results from 2 search queries and it seems right now if I add {exp:channel:entries search:custom="x" search:custom="y"} it only displays entries that match BOTH searches. Is there a way to display searches of one result and searches of the other?

    Thanks!

  • #2 / Sep 30, 2011 3:09pm

    Rob Allen

    3105 posts

    You could use 2 separate Channel entries tags, one for each search value?

  • #3 / Oct 01, 2011 4:37pm

    Kevin Smith

    4784 posts

    Hi papertigerllc,

    Have you tried “contains” matching in the search parameter?

    search:body="pickles|shoes"

    This example would return all entries that contained the term “pickles” or contained the term “shoes”.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases