|
/ Documentation /General/ Using ACF Repeater Field in Spectra

Using ACF Repeater Field in Spectra

The Advanced Custom Fields (ACF) plugin is a powerful tool for creating custom fields in WordPress. One of its standout features is the Repeater Field, which allows you to create flexible content structures with sets of subfields that can be repeated as needed.

This guide will show you how to leverage the ACF Repeater Field within the Spectra plugin and its Pro version to enhance your website’s content management and presentation.

What Are the Prerequisites?

Before you get started, make sure you have the following:

  • WordPress Installation: A running WordPress site.
  • ACF Plugin: Installed and activated.
  • Spectra Plugin: Installed and activated.
  • Spectra Pro: Ensure you have the Pro version for access to dynamic content features.

How Do You Set Up the ACF Repeater Field?

Step 1: Create a Field Group

  1. In your WordPress admin panel, go to Custom Fields > Add New.
  2. Give your field group a title, like “Testimonials.”
  3. Click Add Field to create the main Repeater Field.

Step 2: Configure the Repeater Field

  1. Set the Field Type to Repeater.
  2. Name the field (e.g., “Testimonial Items”).
  3. Click Add Sub Field to define the fields you want to repeat, such as Name and Quote.
    • Set a label and field type for each subfield (Text, etc.).

Step 3: Publish the Field Group

Once all fields are added, click Publish to save the field group.

How to Add Content to the Repeater Field?

  • Go to the post or page where you want to use the repeater field.
  • Scroll down to the ACF field group you created.
  • Click Add Row under the Repeater Field to add multiple entries.
  • Enter the information for each subfield.

How to Display the Repeater Field in Spectra?

To display the ACF Repeater Field using Spectra, follow these steps:

Step 1: Edit the Page with Spectra

Open the page where you want to display the repeater field using the Spectra editor.

Step 2: Use Spectra Blocks

Drag and drop a Spectra block that supports dynamic content, such as a heading block.

Step 3: Configure Dynamic Content

  1. In the block settings, select the ACF Repeater Field as the data source.
  2. Map the subfields to the corresponding fields in the Spectra block (e.g., Name for a heading block and Quote for a text block).
  3. Customize the styling and layout options to fit your design.

For a better understanding, you can refer to the below attached video.

Integrating the ACF Repeater Field with Spectra allows you to create dynamic, flexible content for your WordPress site.

By following these steps, you can efficiently set up and display repeater fields, enhancing both content management and user experience.

We hope this guide was helpful! If you have any questions, please feel free to leave your comments below.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

%title %title
On this page

Get Notified When Available

Note - You can purchase the Essential Toolkit now and easily upgrade to the Business Toolkit once it becomes available.

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Get your hands on Spectra Pro

Enter your name and email address to get access to Spectra Pro.