Home › Forums › General Issues › Get ACF values from an other ACF page fileds › Reply To: Get ACF values from an other ACF page fileds
ok thanks for your repply
Here is what I’ve done and got it worked without any fixed ID
<?php if( have_rows('dvd_list') ) : ?> <?php while( have_rows('dvd_list') ): the_row(); $dvdItem = get_sub_field('dvd_object'); if ( $dvdItem) : $dvdName= get_field_object('dvd_name', $dvdItem->ID); ?> <div><?php echo $dvdName['value']; ?></div> <?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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.