// Setup $post_objects = get_field('acf_post_object_field'); $slug_array = array(); // Loop if($post_objects) { foreach($post_objects as $post_object): // Get slug and place into the array $slug_array[] = $post_object->post_name; endforeach; } // Echo <?= implode(' ', $slug_array); ?>