repeater acf

Solutions on MaxInterview for repeater acf by the best coders in the world

showing results for - "repeater acf"
Ellis
15 Oct 2020
1<?php
2
3// ACF REPEATER - BASIC LOOP
4
5// check if the repeater field has rows of data
6if( have_rows('repeater_field_name') ):
7
8 	// loop through the rows of data
9    while ( have_rows('repeater_field_name') ) : the_row();
10
11        // display a sub field value
12        the_sub_field('sub_field_name');
13
14    endwhile;
15
16else :
17
18    // no rows found
19
20endif;
21
22?>
Sophia
31 Apr 2017
1<?php if( have_rows('repeater_field_name') ): 
2	while( have_rows('repeater_field_name') ): the_row(); 
3		$image = get_sub_field('image');
4	endwhile;
5endif; ?>
Raheem
11 Jan 2018
1<?php if( have_rows('repeater_field_name') ): ?>
2
3	<ul class="slides">
4
5	<?php while( have_rows('repeater_field_name') ): the_row(); 
6
7		// vars
8		$image = get_sub_field('image');
9		$content = get_sub_field('content');
10		$link = get_sub_field('link');
11
12		?>
13
14		<li class="slide">
15
16			<?php if( $link ): ?>
17				<a href="<?php echo $link; ?>">
18			<?php endif; ?>
19
20				<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt'] ?>" />
21
22			<?php if( $link ): ?>
23				</a>
24			<?php endif; ?>
25
26		    <?php echo $content; ?>
27
28		</li>
29
30	<?php endwhile; ?>
31
32	</ul>
33
34<?php endif; ?>
Giacomo
29 Apr 2016
1<?php if( have_rows('slides') ): ?>
2    <ul class="slides">
3    <?php while( have_rows('slides') ): the_row(); 
4        $image = get_sub_field('image');
5        ?>
6        <li>
7            <?php echo wp_get_attachment_image( $image, 'full' ); ?>
8            <p><?php the_sub_field('caption'); ?></p>
9        </li>
10    <?php endwhile; ?>
11    </ul>
12<?php endif; ?>
Alma
04 May 2017
1<?php 
2$rows = get_field('repeater_field_name');
3if( $rows ) {
4    echo '<ul class="slides">';
5    foreach( $rows as $row ) {
6        $image = $row['image'];
7        echo '<li>';
8            echo wp_get_attachment_image( $image, 'full' );
9            echo wpautop( $row['caption'] );
10        echo '</li>';
11    }
12    echo '</ul>';
13}
Anthony
22 Jan 2019
1<?php 
2
3$rows = get_field('repeater_field_name');
4if($rows)
5{
6	echo '<ul>';
7
8	foreach($rows as $row)
9	{
10		echo '<li>sub_field_1 = ' . $row['sub_field_1'] . ', sub_field_2 = ' . $row['sub_field_2'] .', etc</li>';
11	}
12
13	echo '</ul>';
14}
queries leading to this page
loop through acf fieldsacf get image using repeateracf repeater in postacf repeater exampleacf repeater displayacf repeater on post pageacf repeater in options pageacf pro get repeater value from custom post typerepeater in a repeater acfadd acf sub field repeaterwp php add to repeatable acf fieldacf reapter fieldget acf field repeateracf repeater contentrepeater field acf freeacf repeater loop codeacf repeater fieldsrows acf repeateracf repeater field using for looprepeat fiel acfacf repeater code examplesacf pro repeater fieldacf repeater php single valueacf repeater queryacf get image repeater fieldrepeater in repeater acfrepeater with foreach acfacf repeater layout doesnt showwordpress acf display repeater fieldrepeater custom fields wordpressuse acf repeater fieldsrepeater foreach acfacf repeater stringrepeater field wordpressacf reotate loopacf arrayacf repeater for elementorhow to use acf repeater in wordpressacf repeater field freeadd repeated field example acfacf repeater idacf get data from repeater in repeateracf in repeateracf pro repeateracf shortcode repeateradvanced custom field repeater fieldrepeater fields acfacf repeater freeacf row loophow to get acf repeater fieldsacf repeater inside repeateracf repeater pluginacf pro repeater field have rowsget acf repeater fieldacf repeatadvanced custom field repeaterrepeater field acfcreate repeater field in wordpress acfacf no repeateracf repeatable fieldacf repeatr fieldacf repeater get fieldget field repeater acf in phpacf target repeater inside of repeateredit repeater in repeater acfacf add new repeater fieldacf type repeatercustom field repeateracf repeater get all rowsacf repeater with repeaterrepeater acf fieldacf repeater field in templatehow to create repeater field in acfacf repeater field codeacf get row layout for unorder listacf foreach loopacf rowacf repeater within a repeaterupdate repeater of repeater acfacf repeater layoutacf repeater imagehow to add repeater field in acfrepeater custom fieldrepeater in phphow to get repeater field value in wordpressget repeater inslider repeater in acfacf repeater blockdisplay repeater in column acfget repeater inside of repeater acf assign variablewp get repeater field valuesacf relationship repeater image fieldadvanced custom fields different fields each rowacf free repeaterhow to show content of acf repeater field in reactadd repeater of repeater acfacf repeater prorepeater acf how toacf relationship repeateracf option page repeateracf repeater from options pageacf relationship image field in repeateruse acf repeaterhow to get the content and loop through it acfacf repeater fieldacf query repeater of repeateracf loop through repeater fieldsacf add repeater fieldacf show repeater fieldacf repeater foreachphp repeateradvanced custom fields 3a repeater fieldimplement something like repeater field of acfrepeater display acfacf repeater filedhow to make acf to use in repeaterrepeater inside repeater acfacf loopacf documentation repeateracf repeater field examplerepeater for acfacf repeater docsacf repeater coderepeater loop acfacf get repeateracf call repeater 21s acf repeateracf relationship custom post type repeater image fieldacf repeter acf get field repeater typedisplay repeater field acfadd repeater field acfacf repeater fillrepeater in acfacf block repeaterfor each acf field display fieldrepeater in acf in wordpressacf foreachget repeater acffor each row in repeater php acfacf loop through repeateracf the looprepeater fieldrepeater acf with an imagerepeater wpacf field for eachacf repeater fiacf query repeaterloop repeater acfacf loop repeateracf repeater in repeaterrepeater fieldsacf create a repeater fieldrepeater under repeater acfacf repeater html cssacf repeater field whereacf repeater field options pageacf add sub field repeateracf inline repeateracf relationship post type image field in repeaterdisplay repeater subfieldadd repeater acfacf wordpress get field repeaterwhat is acf repeater fieldsrepeater acfhow to display repeated fields inside while 28 have rowsacf pro not all entries showing in data on repeater fieldacf repeater in elementoracf location repeateracf repeater fielsacf repeat fieldacf reapter field loop throughacf repeater custom fieldrepeater inphpacf get repeater field acf repeater phpacf repeater datahow to get acf repeater fieldacf repeater linkacf fake repeater field with arratywordpress acf repeater fieldacf doesnt have repeater layoutget repeater field acfacf plugin repeateracf repeater functionacf pro repeater pretty photoacf repeater for eachacf repeater alternativeacf get fieldacf repeater termplatewp repeatercustom acf repeater acf repeater field in repeater fieldrepeater wordpress example htmlrepeater foreach loop acfrepeater acf 2020advance custom fields repeater wordpressadvanced custom fields repeateracf repeater fiedlloop in acfwordpress repeater layout typesdisplay repeater acfis acf repeater existsacf repeater options pageforeach loop repeater acfacf get field inside repeatable fieldacf retrieve value within repeater fieldacf repeater example countacf repeater inside repeater to create tableacf repeater build your ownacf repeater inside of repeater acf repeater in sub fieldacf repeater newacf repeater style pluginadvanced custom fields foreach 28acf 29 repeater fieldsadvanced custom fields pro sub fieldrepeater field data repeater itemacf repeater optionsacf example of repeateracf repeater loopacf options page repeaterrepeater acfgacf repeater tableinstall repeater field in acf wordpressrepeater wordpressrepeater acf wordpressacf repeater design acf repeater get imagerepeater in options page acfget repeater image array acfacf repeater importacf repeater field templateget field repeater acfacf field repeateradvanced custom fields repeated fieldshow to your custom field type to repeater in wordpresswp acf repeateracf for each loopwordpress repeateracf repepateradvanced custom field repeater pluginacf repeateracf repaeter imageacf repeater examplesacf repeater elementoracf repeater whilehttps 3a 2f 2fwww advancedcustomfields query repeateracf repeater with repeater queryadd acf sub field repeater arrayacf repeater texthow to add repeater field in theme option section in wordpressacf pro repeter pretty photorepeater acf