I have a metafield, that contains a series of options and writes the results to an array in a single meta field:
array(=>'First', =>'Second', =>'Third', );
I find posts that contain any of the array elements, and display them using
$search = new WP_Query('meta_key=mykey&meta_value=second');
But this doesn't seem to work. Any idea on how to achieve this?
I have edited my method, following this question:
$arg['meta_key'] == $key; $args['meta_value'] = "%|".$value."|%"; $custom_query = new WP_Query($args);
But no darts.