fbpx

ACF Repeater Field Addon 2.1.0

Updated: April 3, 2021

ACF PRO includes extra fields & features to better develop websites including repeatable fields, page building tools, media galleries, custom options pages and more.

Advanced Custom Fields Repeater Field Addon

The Repeater Field

The repeater field allows you to create a set of sub fields which can be repeated again and again whilst editing content!

Any type of field can be added as a sub field which allows you to create and manage very customized data with ease!

Template Usage

The repeater field is essentially a wrapper for a group of sub fields, so to loop through the rows of data and target the sub field values, you must make use of a few extra functions. These are described below:

Basic Loop

This example shows how to loop through and display data with the have_rowsthe_row and the_sub_field functions

<?php

// check if the repeater field has rows of data
if( have_rows('repeater_field_name') ):

 	// loop through the rows of data
    while ( have_rows('repeater_field_name') ) : the_row();

        // display a sub field value
        the_sub_field('sub_field_name');

    endwhile;

else :

    // no rows found

endif;

?>

See more examples

Installation

ACF PRO

The Repeater Field can be installed by purchasing a license for ACF PRO. On payment, you will receive a receipt from ACF and a user account allowing access to your downloads. Once ACF PRO is installed, enter your license key to enable plugin updates.

Plugin

The Repeater Field may also be installed by purchasing a license for this add-on. On payment, you will receive a receipt from ACF and a user account allowing access to your downloads. Once the add-on is installed (requires the free version of ACF to also be installed) you will not need to enter any license key information.

Advanced Custom Fields Repeater Field Addon
WordPress.com

Category:

Version: 2.1.0

License: GPL

Updated: April 3, 2021

Rate This
JoinBooksCub.com

You might like these

Stop! Are you Blogging?

Today's Special Offer!