Outputing Post Object title as a div class with ACF July 21, 2022 by Tarik Billa Looks like you’re missing the $page->ID from the get_field function. $ancestors = get_field('ancestor', $page->ID);