Support

Account

Forum Replies Created

  • Yes please, a code revision according to the new standard would be useful on the official ACF Documentation!

    Thank you!

  • After talking with the ACF support, I can confirm that the following method worked for me:

    When filtering based on nested repeater subfields, you will need to add the replace $ with % code twice

    // filter 
    function my_posts_where( $where ) { 	 	
    
    $where = str_replace("meta_key = 'locations_$", "meta_key LIKE 'locations_%", $where); 	
    
    $where = str_replace("meta_key = 'city_$", "meta_key LIKE 'city_%", $where); 	
    
    return $where; 
    
    }
Viewing 2 posts - 1 through 2 (of 2 total)