Home › Forums › Add-ons › Repeater Field › Pulling in single data › Reply To: Pulling in single data
Hi @antsykes95
Could you please share the JSON export file of your field group so I can see your current setup?
The easiest way to get the other data for a certain row is by checking the data inside it like this:
// this data is retrieved dynamically
$current_dj = "current dj name";
$repeater_value = get_field('repeater_field_name', 85);
foreach( $repeater_value as $row ){
if( $row['presenter_name_field'] == $current_dj ){
echo $row['bio_name_field'];
echo $row['image_name_field'];
}
}
I hope this makes sense 🙂
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.