WP_Query multiple value not working
Question
How to query for multiple meta key values with the same key
i have this query but multiple value not working for me, Where is my code wrong?
if( isset( $_POST['scheduled_scan'] ) && $_POST['scheduled_scan'] == 'on' )
$args['meta_query'][] = array(
'key' => 'antivirus_antivirus_featured_scaning',
'value' => array('scheduled_scan','anti_spyware','anti_worm'),
'compare' => 'LIKE'
);
this is a full code in my form and query if you need
i used the advanced custom fields for keys
thanks for any help.
0
meta-query, meta-value, wp-query
3 years
2020-07-17T04:10:25-05:00
2020-07-17T04:10:25-05:00 0 Answers
63 views
0
Leave an answer