crazyyy
8/4/2014 - 10:53 AM

WordPress: WP Query post with sorting

WordPress: WP Query post with sorting

$query = new WP_Query( array(
    'post_type' => 'property',
    'meta_query' => array(
        array(
            'key' => 'price',
            'value' => 50000,
            'compare' => '<=',
            'type' => 'NUMERIC',
        ),
    ),
) );