Categories
CMS Development Wordpress

WP_Query with LIKE returns strange query

IN works quite fine for comparison though

   array(

                    'key' => 'customdata',

                    'value' => $arraydata,

                    'compare' => 'IN'

                ),

but when i try below with LIKE it returns strange result with long codes and also no record is found against it. Any help much appreicated

   array(

                    'key' => 'customdata',

                    'value' => $arraydata,

                    'compare' => 'LIKE'

                )

$loop = new WP_Query($loopArray);
echo "Query: {$loop->request}";

Leave a Reply

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