Home Forums General Issues Updating a repeater field Reply To: Updating a repeater field

  • Thanks for that John – I gave up and went home just after you sent it so didn’t reply 🙂
    I know its something silly I’m doing but this works and appends a single item

    	$imageurls = array_column( $vehicle->{ 'Images'}, 'ImageURI');
                foreach( $imageurls as $url ) {
                    $images= array(
    		        array('field_5e70d223200ab' => $url)

    Its just giving 5 blank entries when $images is set to be an array ie $images[] = …