Home › Forums › General Issues › gettimg custom field values from parent and grandparent page? › Reply To: gettimg custom field values from parent and grandparent page?
I have tried the above but I am not having much success.
I am using a repeater field but want the same results (display parent values on a sub page).
The code I am using on the parent page is:
<?php
$rows = get_field('currentShows');
if($rows)
{
foreach($rows as $row)
{ ?>
<li>
<a href="<?php echo $row['currentLink']; ?>">
<?php echo $row['currentLinkText']; ?>
</a>
</li>
<?php
} //end for
}// endif
else {
echo 'Coming soon';
}
?>
Any help much appreciated.
Thanks
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.