Using:
$query = new WP_Query();
How do I filter to get records with titles OR content OR meta keys which contain a part of a string.
I currently have
$args=array(
'order'=>'asc',
'post_type' => $type,
'post_status' => 'publish',
'meta_query' => array(
array(
'key' => 'my_meta_key',
'value' => sanitize_text_field($_GET["search"]),
'compare' => 'LIKE'
)
),
'posts_per_page' => -1,
'caller_get_posts'=> 1);
Which is currently working perfectly but does not obvious filter by title and content as well.