title: ACF Update Field into nested repeater field
body: <p>I'm trying to let users post from the front end into a nested ACF repeater field.</p>
  
  <p>I've got the sub fields in the first repeater posting fine. But, I can't quite figure out how to get the nested repeater working properly. </p>
  
  <p>Here's the code I have so far:</p>
  
  <pre><code>$event_field_key = 'field_535e6b9ffe3da';
  
  $events[] = array(
      'start-date'   =&gt; $startDate,
      'end-date'     =&gt; $endDate,
      'notes'          =&gt; $_POST['p'.$p.'-notes'],
      'start-end-times' =&gt; array(
          'start-time' =&gt; '09:00', // would be dynamic
          'end-time' =&gt; '17:00' // would be dynamic
      )
  );
  
  update_field($event_field_key, $events, $post_id);
  </code></pre>
  
  <p>I'm not sure if I can just nest another <code>array</code> in there, or if I need to do something else.</p>
  
  <p>[UPDATE]</p>
  
  <p>I've just done this and it does input into the first row:</p>
  
  <pre><code>$event_field_key = 'field_535e6b9ffe3da';
  
  $events[] = array(
      'start-date'   =&gt; $startDate,
      'end-date'     =&gt; $endDate,
      'notes'          =&gt; $_POST['p'.$p.'-notes'],
      'start-end-times' =&gt; array(
         'start-time' =&gt; '9:00',
         'end-time' =&gt; ' 17:00'
      )
  );
  
  update_field($event_field_key, $events, $post_id);
  </code></pre>
  
  <p>However, this code puts row 1 values both as <code>9</code> and row 2 values as <code>1</code>.</p>
  
  <p>So it looks like: </p>
  
  <p><code>Row 1: start time: 9, end time: 9</code>
  <code>Row 2: start time: 1, end time: 1</code></p>
  
  <p>I can't seem to find any documentation on this, but it looks like it's possible, just a case of figuring out the syntax.</p>