please tell me the error in this code.

    $args = array(
              'posts_per_page' => 5,
              'post_type' => 'organisation',
              'paged' => $paged,
              'meta_query' => array(
                  array(
                    'key'     => 'title',
                    'value'   => 'a',
                    'compare' => 'LIKE',
                  ),
                ),
                 );
   $query = new WP_Query($args);
            if ( $query->have_posts() ) 
{
echo 'have posts.';

}

Read more here: please tell me the error in args array


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: