Support » Fixing WordPress » mySQL field=ALL equivalent in WP?

  • ixwa


    I have a multi-select form doing its thing, but I want some of the options to be…optional and to return all posts results regardless of that particular field’s value.

    Is there an equivalent to mySQL field=ALL?

    I thought maybe leaving it blank would accomplish this, but I’m not sure about the results I’m getting.

Viewing 2 replies - 1 through 2 (of 2 total)
  • vtxyzzy


    If you can use the ‘LIKE’ operator rather than just an equals, try using a single percent sign for the value: ‘%’

    field LIKE ‘%’



    Hmm, good suggestion; will report back.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘mySQL field=ALL equivalent in WP?’ is closed to new replies.