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)

The topic ‘Search in repeater field on get_posts function’ is closed to new replies.