Support

Account

Home Forums Backend Issues (wp-admin) Relationship field and subpages Reply To: Relationship field and subpages

  • I trie to make multiple pages childs in a relation field… but I’m getting (no title) () as a result in de acf relation field.

    function my_relationship_query($args,$field,$post)
    {
    // This works fine to get the childs of one page with id 225
    // $args[‘post_parent’] = 225;

    // I’ve tried to get childs of multiple pages 225 and 83263 this doesn’t work (no title) ()
    // $args = array(‘post_type’ => ‘page’, ‘post_parent’ => array(225));
    // $args = array(‘post_type’ => ‘page’, ‘post_parent__in’ => array(225, 83263));
    return $args;
    }

    Is this a bug?