What is the best way to create a meta query that searches through ALL meta fields (keys)? What I'm trying to do is something such as:
$posts = new WP_Query(array(
'meta_query' => array(
'relation' => 'OR'
array(
'key' => ALL,
'value' => keyword
)
)
));
Does that make sense? What is the proper way of doing it?
Thanks
key
and addcompare => 'LIKE'
- but there isn't a "select all" or wildcard for keys inmeta_query
.