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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.