I'm having trouble with the code below. Attempting to do a query against meta data stored with the posts, in the mls post type. I think I know what the issue is, but not how to fix it. I am guessing it has something to do with the value being stored as a string. I've searched and found other people confused about this, but not a solution. Here are two examples I've attempted with no luck.
<?php $args = array( 'post_type' => 'mls', 'meta_query' => array( relation => 'AND', array( 'key' => '_city', 'value' => 'Clarkson', 'compare' => '=' ), array( 'key' => '_price', 'value' => '200000', 'type' => 'numeric', 'compare' => '>=' ) //array( // 'key' => '_price', // 'value' => array( 200000, 1000000 ), // 'type' => 'numeric', // 'compare' => 'BETWEEN' //) ) ); ?>