WordPress Array Query not Ordered Correctly

This query below work fine however when it comes to displaying the order it just shows them as the latest published and not ordered by another query, how do I correct this?

        <?php 
        $args = array(
            'meta_query' => array(
            'relation' => 'AND',
            array(
                'key' => 'packageID',
                'value' => array('1', '2', '3'),
                'compare' => 'IN',
                'post_type'=>'post',
                'post_status' => 'publish',
            ),
            array(
                'key' => 'abroad',
                'value' => 'yes',
                'compare' => '=',
            ),              

        'orderby'  => 'meta_value_num',
        'meta_key' => 'wpfp_favorites',
        'showposts'=> 20,
        'order'    => 'DESC'
        )
        );
        query_posts($args); ?>
        <?php while (have_posts() ) : the_post(); ?>

Read more here: WordPress Array Query not Ordered Correctly

Leave a Reply

Your email address will not be published. Required fields are marked *