Support

Account

Home Forums Feature Requests Relationship: Post Children Filter Reply To: Relationship: Post Children Filter

  • forgot some quotes =)
    maybe’ll help

    
    function my_func_filter($args, $field, $post){
       $args['post_parent'] = $post->ID;
       return $args;
    }
    
    add_filter('acf/fields/relationship/query/name=YourACFFieldSlug', 'my_func_filter', 10,3);