Getting values from parent page
-
Hello,
I am trying to get the values from a parent page which is using the repeater functionality.
I would like to display the values on the child pages and possibly grandchild pages.
Below is the code I am using to display the values on the parent page:
<h2>History</h2> <div class="historyNav"> <ul> <?php $rows = get_field('history'); if($rows) { foreach($rows as $row) { ?> <li> <a href="<?php echo $row['hisLink']; ?>"><?php echo $row['historyLinkText']; ?></a> </li> <?php } //end for }// endif </ul>
Any help much appreciated
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Getting values from parent page’ is closed to new replies.