Support

Account

Home Forums ACF PRO WP_Query by repeater page link

Unread

WP_Query by repeater page link

  • Hello,

    I have a custom post type of “Products” which has a repeater called “Applications” which has a field of “Link”. I am trying to retrieve all the products when on one of these Application pages.

    The code I have is..

    	$args = [
    		"post_type" => 'product',
    		"post_status" => 'publish',
    		'nopaging' => true,
    		'order' => 'ID',
    		'orderby' => 'ASC',	
    		'meta_query' => array(
    			array(
    				'key' => 'applications_%_link',
    				'value' => 86
    				'compare' => 'LIKE'
    			)
    		)		
    	]

    But I don’t seem to be getting getting any results back.

    Any help would be greatly appreciated.

    Thanks

    David

Viewing 1 post (of 1 total)

The topic ‘WP_Query by repeater page link’ is closed to new replies.