You could just post the code here as well within code tags tho 🙂
<?php if( have_rows('cast') ): ?> <?php while( have_rows('cast') ): the_row(); ?> <?php $post_object = get_sub_field('actor'); ?> <?php if( $post_object ): ?> <?php // override $post $post = $post_object; setup_postdata( $post ); ?> <h1><?php the_title(); ?></h1> <?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly ?> <?php endif; ?> <?php endwhile; ?> <?php endif; ?>
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!
Sorry for the issues with ACF's API SSL certificate this morning. We've resolved it and your activations and downloads should be back to normal again. Thanks! ^LG— Advanced Custom Fields (@wp_acf) November 2, 2022
© 2022 Advanced Custom Fields.