 $args = array(     'post_type' => 'products',     'meta_key' => 'product_price',     'orderby' => 'meta_value_num',     'order' => 'ASC',     'posts_per_page'=> -0 ); $post_list = get_posts($args);  