Support

Account

Home Forums General Issues Retrieve native page ID of repeater field value

Solved

Retrieve native page ID of repeater field value

  • Is there any way to get the ID of a page that a repeater field value was on? I am outputting a range of repeater values onto a page, which all come from various pages, but I want them to be clickable to go to the page they came from.

    Within the while ( have_rows('') ) { loop I have $link = get_the_ID(); then in the foreach, echo’ing each value from the repeater I’ve put <a href="<?php echo get_permalink($link); ?>"><?php echo $artist; ?></a> but still returns the same ID for all…

    Thanks,
    R

  • Not sure how to delete a post, but please do.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Retrieve native page ID of repeater field value’ is closed to new replies.