Custom query with meta_key not working fine

@Rod0n WP version 4.2 included the number of improvements in WP_QUERY particularly when use the ‘meta_query’ parameter. Also, check the WP_QUERY Class Refernece.


$args = array( 
         'post_type' => 'proyectos' ,
         'posts_per_page' => 8 , 
         'paged' => $paged,
         'orderby' => array(
           'meta_value' => 'DESC'
          ), 
         'meta_query' => array(
           array(
             'key' => 'wpcf-estado',
             'compare' => 'EXISTS',
          ),
       ),
    );

Hope it will work for you!