How to Compare Two Meta Fields
A rought method would be to set value of balance to ‘mt1.meta_value’ and then use a ‘posts_request’ filter to remove the escaping quotes: $args = array( ‘post_type’ => ‘post’, // maybe not ‘meta_query’ => array( array( ‘key’ => ‘balance’, ‘compare’ => ‘>=’, ‘value’ => ‘mt1.meta_value’, // this will be treated as a string ‘type’ => … Read more