• <?php
    $args = array(
    'post_status' 		=> 'publish',
    'post_type' 		=> 'movies',
    'order'				=> 'DESC',
    'orderby'			=> 'meta_value',
    'meta_query' 		=> array(
    		array(
    		'key'		=> 'budget',
    		),
    		),
    		);
    ?>

    this simple query has no errors but doesn’t work correctly, as I am trying to have the largest movie budget at top in a DESC order.

    Any help greatly appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Most expensive’ is closed to new replies.