-
-
Save portegno/e09ccc2d962985e7a7bc5eaae62ab822 to your computer and use it in GitHub Desktop.
ACF Repeater Field - Campo de Repetición
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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