title: ACF - Repeater shows only last entered row, not all rows from post
body: <p>I have this code inside my functions.php file:</p>
  
  <pre><code>while ( have_rows('origin-repiter') ): the_row();
  $origin = get_sub_field('origin-rep');
  endwhile;
  
  
  while ( have_rows('destination-repiter') ): the_row();
  $destination =  get_sub_field('destination-rep');
  endwhile;
  </code></pre>
  
  <p>Here are origin-repiter/destination repiter repeater field name and origin-rep/destination-rep are repeater fields, rows if you want.</p>
  
  <p>My problem is that on frontend of my WP site ACF shows only last input from backend for repeater fields.</p>
  
  <p>Example:</p>
  
  <p>For ORIGIN I entered: </p>
  
  <p>LONDON, PARIS, MOSCOW (three rows) same for DESTINATION but inverse (MOSCOW, PARIS, LONDON).</p>
  
  <p>But on frontend ACF showing only last entry </p>
  
  <p>Origin: MOSCOW &amp; Destination: LONDON</p>
  
  <p>This is a code from functions.php which renders PHP/HTML on frontend for those two fields/snippets:</p>
  
  <pre><code>$output .= '&lt;div class="post_offer"&gt;&lt;div class="offer-header"&gt;&lt;div class="offer-pr"&gt;&lt;div class="offer-pr-t"&gt; from&lt;/div&gt; &lt;div class="offer-pr-v"&gt;&lt;div class=""&gt;&lt;div class="offer-pr-c"&gt;'.$fcurrency_icon .'&lt;/div&gt;&lt;span class="price" style="font-size:30px;"&gt;'.$fprice.'&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;h2 class="offer-tl editor-paragraph-tags"&gt;'.$ftitle.'&lt;/h2&gt;&lt;/div&gt;&lt;div class="offer-rt-rd"&gt;&lt;div class="offer-rt-rd-o"&gt;&lt;div class="offer-rt-rd-lb"&gt;Origin&lt;/div&gt;&lt;div class="offer-rt-rd-lo"&gt;'.$origin.'&lt;/div&gt;&lt;/div&gt;&lt;div class="offer-rt-rd-d"&gt;&lt;div class="offer-rt-rd-lb"&gt;Destination&lt;/div&gt;&lt;div class="offer-rt-rd-lo"&gt;'.$destination .'&lt;/div&gt;&lt;/div&gt;&lt;div class="offer-rt-rd-ico"&gt;&lt;/div&gt;&lt;/div&gt;';
  </code></pre>
  
  <p>Any help appreciated!!!</p>
  
  <p>ADDENDUM - Whole code:</p>
  
  <pre><code>function add_box_post_end($content){
  global $post;
  $postId = $post-&gt;ID;
  $title = get_field('title_text', $postId);
  $ftitle = ($title != '')? $title :'';
  $currency_icon = get_field('currency_icon', $postId);
  $fcurrency_icon = ($currency_icon != '')? $currency_icon :'£';
  $price =  get_field('price', $postId);
  $fprice = ($price != '')? $price :'99';
  
  if( have_rows('origin-destination') ):      /* your_repeater_name corresponds to the name of your repeater field */
  
      // loop through the rows of data
      while ( have_rows('origin-destination') ) : the_row();
  
      // or save the sub fields in a variable
      $origin = get_sub_field('origin');
      $destination= get_sub_field('destination');
  
      endwhile;
  
  else :
  
      // no rows found
  
  endif;
  
  
  $zbor_text = (get_field('zbor_text')!='')?get_field('zbor_text'):'';
  $rr = get_field('zbor_images');
  if(get_field('zbor_images')!=''){
      $zbor_imagess = get_field('zbor_images');
      $zbor_images = '';
      foreach($zbor_imagess as $zbor_image){
          $imgUrl = $zbor_image['url'];
          $imgAlt = $zbor_image['title'];
          $imgLink = ($zbor_image['alt']!='')?$zbor_image['alt']:'javascript:;';
          $zbor_images .= '&lt;a href="'. $imgLink .'" target="_blank" style="display:block;"&gt;&lt;img src="' . $imgUrl . '" alt="'. $imgAlt .'" /&gt;&lt;/a&gt;&lt;br /&gt;';
      }
  }else{
      $zbor_images = '';
  }
  
  
  
  $cazare_text = (get_field('cazare_text')!='')?get_field('cazare_text'):'';
  if(get_field('cazare_images')!=''){
      $cazare_imagess = get_field('cazare_images');
      $cazare_images = '';
      foreach($cazare_imagess as $cazare_image){
          $imgUrl = $cazare_image['url'];
          $imgAlt = $cazare_image['title'];
          $imgLink = ($cazare_image['alt']!='')?$cazare_image['alt']:'javascript:;';
          $cazare_images .= '&lt;a href="'. $imgLink .'" target="_blank" style="display:block;"&gt;&lt;img src="' . $imgUrl . '" alt="'. $imgAlt .'" /&gt;&lt;/a&gt;&lt;br /&gt;';
      }
  }else{
      $cazare_images = '';
  }
  
  $inchiriere_masina_text = (get_field('inchiriere_masina_text')!='')?get_field('inchiriere_masina_text'):'';
  if(get_field('inchiriere_masina_images')!=''){
      $inchiriere_masina_imagess = get_field('inchiriere_masina_images');
      $inchiriere_masina_images = '';
      foreach($inchiriere_masina_imagess as $inchiriere_masina_image){
          $imgUrl = $inchiriere_masina_image['url'];
          $imgAlt = $inchiriere_masina_image['title'];
          $imgLink = ($inchiriere_masina_image['alt']!='')?$inchiriere_masina_image['alt']:'javascript:;';
          $inchiriere_masina_images .= '&lt;a href="'. $imgLink .'" target="_blank" style="display:block;"&gt;&lt;img src="' . $imgUrl . '" alt="'. $imgAlt .'" /&gt;&lt;/a&gt;&lt;br /&gt;';
      }
  }else{
      $inchiriere_masina_images = '';
  }
  
  
  $transfer_aeroport_text = (get_field('transfer_aeroport_text')!='')?get_field('transfer_aeroport_text'):'';
  if(get_field('transfer_aeroport_images')!=''){
      $transfer_aeroport_imagess = get_field('transfer_aeroport_images');
      $transfer_aeroport_images = '';
      foreach($transfer_aeroport_imagess as $transfer_aeroport_image){
          $imgUrl = $transfer_aeroport_image['url'];
          $imgAlt = $transfer_aeroport_image['title'];
          $imgLink = ($transfer_aeroport_image['alt']!='')?$transfer_aeroport_image['alt']:'javascript:;';
          $transfer_aeroport_images .= '&lt;a href="'. $imgLink .'" target="_blank" style="display:block;"&gt;&lt;img src="' . $imgUrl . '" alt="'. $imgAlt .'" /&gt;&lt;/a&gt;&lt;br /&gt;';
      }
  }else{
      $transfer_aeroport_images = '';
  }
  
  $escala_text = (get_field('escala_text')!='')?get_field('escala_text'):'';
  if(get_field('escala_images')!=''){
      $escala_imagess = get_field('escala_images');
      $escala_images = '';
      foreach($escala_imagess as $escala_image){
          $imgUrl = $escala_image['url'];
          $imgAlt = $escala_image['title'];
          $imgLink = ($escala_image['alt']!='')?$escala_image['alt']:'javascript:;';
          $escala_images .= '&lt;a href="'. $imgLink .'" target="_blank" style="display:block;"&gt;&lt;img src="' . $imgUrl . '" alt="'. $imgAlt .'" /&gt;&lt;/a&gt;&lt;br /&gt;';
      }
  }else{
      $escala_images = '';
  }
  
  $button_one_text = (get_field('button_one_text')!='')?get_field('button_one_text'):'CLICK HERE TO BOOK';
  $button_one_url = (get_field('button_one_url')!='')?get_field('button_one_url'):'#';
  $buttonOne = '&lt;a class="offer-book-lnk" href="'.$button_one_url.'" target="_blank" rel="nofollow"&gt;'. $button_one_text .'&lt;/a&gt;';
  
  $button_two_text = (get_field('button_two_text')!='')?get_field('button_two_text'):'HOTEL COMPARISON TOOL';
  $button_two_url = (get_field('button_two_url')!='')?get_field('button_two_url'):'#';
  $buttonTwo = '&lt;a class="offer-book-lnk" href="'. $button_two_url .'" target="_blank" rel="nofollow"&gt;'. $button_two_text .'&lt;/a&gt;';
  
  $zbor = ($zbor_text!='' || $zbor_images!='')? '[tabby title="ZBOR"]'. $zbor_text . '&lt;br /&gt;' . $zbor_images:'';
  $cazare = ($cazare_text!='' || $cazare_images!='')? '[tabby title="CAZARE"]'. $cazare_text . '&lt;br /&gt;' . $cazare_images:'';
  
  $inchiriere_masina = ($inchiriere_masina_text!='' || $inchiriere_masina_images!='')? '[tabby title="INCHIRIERE MASINA"]'. $inchiriere_masina_text . '&lt;br /&gt;' . $inchiriere_masina_images:'';
  
  $transfer_aeroport = ($transfer_aeroport_text!='' || $transfer_aeroport_images!='')? '[tabby title="TRANSFER AEROPORT"]'. $transfer_aeroport_text . '&lt;br /&gt;' . $transfer_aeroport_images:'';
  
  $escala = ($escala_text!='' || $escala_images!='')? '[tabby title="ESCALA"]'. $escala_text . '&lt;br /&gt;' . $escala_images:'';
  
  $output = '';
  if(is_single() &amp;&amp; $ftitle!='' &amp;&amp; $price!=''){
      $output .= '&lt;div class="post_offer"&gt;&lt;div class="offer-header"&gt;&lt;div class="offer-pr"&gt;&lt;div class="offer-pr-t"&gt; from&lt;/div&gt; &lt;div class="offer-pr-v"&gt;&lt;div class=""&gt;&lt;div class="offer-pr-c"&gt;'.$fcurrency_icon .'&lt;/div&gt;&lt;span class="price" style="font-size:30px;"&gt;'.$fprice.'&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;h2 class="offer-tl editor-paragraph-tags"&gt;'.$ftitle.'&lt;/h2&gt;&lt;/div&gt;&lt;div class="offer-rt-rd"&gt;&lt;div class="offer-rt-rd-o"&gt;&lt;div class="offer-rt-rd-lb"&gt;Origin&lt;/div&gt;&lt;div class="offer-rt-rd-lo"&gt;'.$origin.'&lt;/div&gt;&lt;/div&gt;&lt;div class="offer-rt-rd-d"&gt;&lt;div class="offer-rt-rd-lb"&gt;Destination&lt;/div&gt;&lt;div class="offer-rt-rd-lo"&gt;'.$destination .'&lt;/br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="offer-rt-rd-ico"&gt;&lt;/div&gt;&lt;/div&gt;';
      $output .= do_shortcode( $zbor . $cazare . $inchiriere_masina . $transfer_aeroport . $escala . '[tabbyending]');
      $output .= '&lt;div class="offer_footer"&gt;&lt;!--&lt;ul class="offer-book"&gt;
                          &lt;li class="offer-book-it"&gt;' . $buttonOne . '&lt;/li&gt;
                          &lt;li class="offer-book-it"&gt;' . $buttonTwo . '&lt;/li&gt;
                  &lt;/ul&gt;--&gt;&lt;/div&gt;&lt;/div&gt;';
  }
  
  $content .= $output;
  return $content;
  </code></pre>