Support

Account

Home Forums Backend Issues (wp-admin) Page Link field type Reply To: Page Link field type

  • I’m having the same problem with page links and post object fields. I’ve done some testing and it looks like the problem has to do with the ‘post_status’ argument being set to “any” in the the get_pages() query.

    I put this line of code into my functions.php to solve the problem until a more formal bugfix is released.

    function fix_acf_post_query($args,$field) {
    $args[‘post_status’] = ‘publish’;
    return $args;
    }
    add_filter(‘acf/fields/post_object/query’,’fix_acf_post_query’,10,2);

    Keep in mind, it’ll restrict your page links to pages that are published.