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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.