Answers for "filter using meta_query"

0

filter using meta_query

$args = array(
  'post_type' => 'product',
  'product_cat' => $food_category->slug,
  'meta_query' => array(
     array(
        'key'     => '_location',
        'value'   => '%"newyork"%', // note the quotes
        'compare' => 'LIKE',
     ),
   ),
 );
Posted by: Guest on June-03-2021

Code answers related to "filter using meta_query"

Browse Popular Code Answers by Language