Support

Account

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