Hey guys,
I tried to run a get_posts function with “meta_query” of repeater field
I tried to add the function in the DOCS, but nothing working
Here is the code:
$results = get_posts(array(
'post_type' => array('brand'),
'numberposts' => -1,
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'content_$_title',
'value' => $keyword,
'compare' => 'LIKE'
)
)
));
1. I already tried to change the ‘$’ sign to ‘%’
2. I already tried to change ‘LIKE’ to ‘=’
3. I already tried to add the ‘my_posts_where’ function in the DOCS
Any help? 🙁