Support

Account

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 🙂