Skip to content

Instantly share code, notes, and snippets.

@portegno
Created July 20, 2016 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save portegno/e09ccc2d962985e7a7bc5eaae62ab822 to your computer and use it in GitHub Desktop.
Save portegno/e09ccc2d962985e7a7bc5eaae62ab822 to your computer and use it in GitHub Desktop.
ACF Repeater Field - Campo de Repetición
<?php
// ver si el repeater field tiene datos
if( have_rows('nombre_repeater_field') ):
// loopear los datos
while ( have_rows('nombre_repeater_field') ) : the_row();
// mostrar un subcampo (subfield)
the_sub_field('nombre_de_subcampo');
endwhile;
else :
// no se han encontrado datos
endif;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment