Viewing 2 replies - 1 through 2 (of 2 total)
  • You’d have to query for just one value, then in your loop get the other custom field and filter based on that.

    Or consider some of the wpdb examples.

    $args = array(
    ‘meta_query’ => array(
    array(
    ‘key’ => ‘city’,
    ‘value’ => ‘bilaspur’
    ),
    array(
    ‘key’ => ‘type’,
    ‘value’ => ‘plots’
    ),
    );
    query_posts($args);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Query for multiple meta keys and values’ is closed to new replies.