query_posts using multiple fields and values
-
Say I wanted to filter posts not with one key and value, but a few of them, how would I go about doing that?
query_posts(‘meta_key=color&meta_value=blue’); Just does one key and value, what if I wanted to filter by color AND shape?
like:
query_posts(‘meta_key=color&meta_value=blue’ AND ‘meta_key=shape&meta_value=triangle’ );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘query_posts using multiple fields and values’ is closed to new replies.