Support

Account

Home Forums Add-ons Repeater Field Specific value from repeater > text field Reply To: Specific value from repeater > text field

  • Fixed – I dont know why this was so hard to achieve

    if ( is_singular( 'schools' ) ) {
    	
    	$postID = get_queried_object_id();
    	$rows = get_field('data_repeater', $postID);
    
    	foreach($rows as $row) {
    		if ( $row['data_name'] === 'lat' ) {
    			$lat_value = $row['data_value'];	
    		}
    		if ( $row['data_name'] === 'long' ) {
    			$long_value = $row['data_value'];	
    		}	
    	}
    }