WP User Query with meta queries

Actually, I think your code says Where min_price >= $price and max_price <= $price. Try to switch the operands, like here: array( ‘key’ => ‘min_price’, ‘value’ => $price, ‘compare’ => ‘<=’, ‘type’ => ‘NUMERIC’ ), array( ‘key’ => ‘max_price’, ‘value’ => $price, ‘compare’ => ‘>=’, ‘type’ => ‘NUMERIC’ ), It works for 10.000 and 20.000 … Read more

Using meta_query in add_query_arg

It seems the normal and expected behaviour to me. meta_query is not a registered query var. You can see a list of registered query vars, and their relationship with WP_Query in this codex entre. Any other query var you want to use needs to be registered and handled by you. A very quick and general … Read more