wp_query not showing correct results
<p>I have a custom post type called 'movies' and within that post type I have several meta data fields, one of which Is called 'released'. What I am trying to do is list the 'movie' posts in order of 'released' e.g. yyyy-mm-dd date format. Here is the code I have tried so far :
        </p>

<pre><code>    &lt;?php $args = array(

        'post_type'         =&gt; 'movies',
        'post_status'       =&gt; 'publish',
        'orderby'           =&gt; 'meta_value_date',
        'meta_key'          =&gt; 'released',
        'meta_type'         =&gt; 'DATE',          
        'order'             =&gt; 'ASC'

        );

    ?&gt;

    &lt;?php $query = new WP_Query( $args ); ?&gt;

    &lt;?php if ( $query-&gt;have_posts() ) : ?&gt;

    &lt;?php bd_pagination(); ?&gt;

    &lt;?php while ( $query-&gt;have_posts() ) : $query-&gt;the_post(); ?&gt;

        &lt;div class="panel panel-default panel-body"&gt;

            &lt;p class="fa fa-calendar"&gt;&lt;/p&gt;&amp;nbsp;&lt;?php the_time( 'd-m-Y' ); ?&gt; | &lt;p class="fa fa-clock-o"&gt;&lt;/p&gt; &lt;?php the_time( 'H:i a' ); ?&gt; |&amp;nbsp;&lt;p class="fa fa-user"&gt;&lt;/p&gt;&amp;nbsp;&lt;a href="&lt;?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?&gt;"&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/i&gt; |&amp;nbsp;&lt;p class="fa fa-envelope-o"&gt;&lt;/p&gt;&amp;nbsp;posted in movies

            &lt;article class="post &lt;?php if ( has_post_thumbnail() ) { ?&gt;has-thumbnail &lt;?php } ?&gt;"&gt;

                &lt;div class="post-thumbnail"&gt;

                    &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_post_thumbnail( 'image-poster' ); ?&gt;&lt;/a&gt;

                &lt;/div&gt;

                &lt;article class="post-thumbnail-text"&gt;

                        &lt;h4 class="align_Center" style="color:#000; padding-bottom:1em;"&gt;&lt;?php the_title(); ?&gt;&lt;/h4&gt;

                        &lt;?php 

                            $nam = get_post_meta( get_the_ID(), "name", true );
                            $rel = get_post_meta( get_the_ID(), "released", true );
                            $rat = get_post_meta( get_the_ID(), "rating", true );
                            $dur = get_post_meta( get_the_ID(), "duration", true );
                            $gen = get_post_meta( get_the_ID(), "genre", true );
                            $dir = get_post_meta( get_the_ID(), "director", true );
                            $wri = get_post_meta( get_the_ID(), "writer", true );
                            $sta = get_post_meta( get_the_ID(), "stars", true );
                            $sto = get_post_meta( get_the_ID(), "storyline", true );

                        ?&gt;

                            &lt;div class="align_Left"&gt;
                                &lt;p&gt;&lt;b&gt;Title:&lt;/b&gt;&amp;nbsp;&lt;?php echo $nam; ?&gt;&lt;/p&gt;
                                &lt;p&gt;&lt;b&gt;Released:&lt;/b&gt;&amp;nbsp;&lt;?php echo $rel; ?&gt;&lt;/p&gt;
                                &lt;p&gt;&lt;b&gt;Rating:&lt;/b&gt;&amp;nbsp;&lt;?php echo $rat; ?&gt;/10&lt;/p&gt;
                                &lt;p&gt;&lt;b&gt;Duration:&lt;/b&gt;&amp;nbsp;&lt;?php echo $dur; ?&gt;&amp;nbsp;min&lt;/p&gt;
                                &lt;p&gt;&lt;b&gt;Genre:&lt;/b&gt;&amp;nbsp;&lt;?php echo $gen; ?&gt;&lt;/p&gt;
                                &lt;p&gt;&lt;b&gt;Director/s:&lt;/b&gt;&amp;nbsp;&lt;?php echo $dir; ?&gt;&lt;/p&gt;
                                &lt;p&gt;&lt;b&gt;Writer/s:&lt;/b&gt;&amp;nbsp;&lt;?php echo $wri; ?&gt;&lt;/p&gt;
                                &lt;p&gt;&lt;b&gt;Stars:&lt;/b&gt;&amp;nbsp;&lt;?php echo $sta; ?&gt;&lt;/p&gt;
                                &lt;p&gt;&lt;b&gt;Storyline:&lt;/b&gt;&amp;nbsp;&lt;?php echo $sto; ?&gt;&lt;/p&gt;
                            &lt;/div&gt;

                        &lt;?php wp_reset_postdata() ?&gt;  

                    &lt;/article&gt;

                &lt;/article&gt;

            &lt;/div&gt;
</code></pre>

<p>Hope someone can help
Steven</p>