Support

Account

Home Forums ACF PRO Query posts by checkbox value (dynamically) Reply To: Query posts by checkbox value (dynamically)

  • Honestly, I don’t see why it’s not working, but you can try this

    
    $meta_query = array('relation' => 'OR');
    foreach($subjects as $subject) :
    	$meta_query[] = array(
    		'key' => 'subjects',
    		'value' => '"'.$subject.'"',
    		'compare' => 'LIKE',
    	);
    endforeach;