Support

Account

Home Forums Add-ons Repeater Field Search in repeater field on get_posts function

Unread

Search in repeater field on get_posts function

  • 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? 🙁

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.