Phox Elements
DYNAMIC Custom field accordions for Breakdance

Turn a repeater field into an accordion with FAQ schema

Accordion Repeater builds an accordion from a repeater field on your page, post or options page. Add or edit questions in the field and the accordion updates. Turn on FAQ schema and search engines can read your questions and answers too.

Works with ACF, Meta Box, Pods and more Optional FAQ schema No manual accordion items
Live demos

Four accordions built from fields on this page

A product FAQ from an ACF repeater, then delivery, gym and hotel FAQs from plain post meta arrays, each with different settings. Click a question to open it.

ACF repeater

Oakwright Furniture: Linden oak table

Rows come from an ACF repeater on this page. Single Open and Open First Item are on, with plus and minus icons and a lilac active colour.

What wood is the table made from?

Solid European oak from FSC-certified forests, finished with a hard-wearing oil that brings out the grain.

How many people does it seat?

How do I look after the oil finish?

Does it arrive assembled?

Can I order a different size?

Native post meta

Delivery and returns

Rows come from a plain post meta array. Bottom Only borders, chevron icons and no backgrounds. Several answers can be open at once.

How much is delivery?

When will my order arrive?

Can I return an item?

Who pays for return postage?

When will I get my refund?

Dark theme

Summit Gym membership questions

Dark title and answer backgrounds, a purple active title and circled plus and minus icons. Single Open is on.

Can I freeze my membership?

Is there a joining fee?

Can I bring a friend?

What should I bring to my first class?

Centred

The Harbour Hotel: before you arrive

Title Align and Content Align set to centre, no borders, an 18px radius and caret icons. The first answer starts open.

What time is check-in?

Check-in is from 3pm and check-out is by 11am. Ask about early check-in when you book.

Is there parking?

Are dogs welcome?

How it works

Three steps to a dynamic FAQ

Set up the field once, then manage the content from the post editor.

1

Create a repeater

Add a repeater field with a title sub-field and a content sub-field, using ACF, Meta Box, Pods, JetEngine, ACPT or Phox Studio.

2

Add the element

Drop Accordion Repeater onto your page and enter the repeater name and the two sub-field names.

3

Fill in the rows

Each row in the repeater becomes an accordion item. Add, edit or reorder rows and the accordion follows.

Features

Everything a FAQ needs

Set it up once and edit the questions in your custom fields.

Six field plugins

Reads repeaters from ACF, Meta Box, ACPT, Pods, JetEngine, Phox Studio or native WordPress meta. Auto Detect finds the right one for you.

Posts or options pages

Pull rows from the current post or page, or from a global options page so the same FAQ can appear anywhere.

FAQ schema

Turn on FAQ schema to output structured data, so search engines can read your questions and answers.

Single or multiple open

Let visitors open several items at once, or close the others when one opens.

Open the first item

Show the first answer open when the page loads, so visitors see an example straight away.

Heading tag of your choice

Use p, div or h2 to h6 for the question titles to fit your page's heading structure.

Title and content colours

Set the title background, the active title colour and the content background.

Icons and alignment

Choose open and close icons, their colours and size, and align titles and content left, centre or right.

Borders and spacing

Set the gap between items, padding, a bottom-only border option, and corner radius.

Use cases

Where it works best

Anywhere the questions change more often than the page design.

01

Product FAQs

Give each product or service its own questions, stored with the post.

02

Site-wide FAQ

Keep one set of questions on an options page and show it in several templates.

03

Course modules

List lessons or modules as expandable rows from a repeater.

04

Directory listings

Show opening details, policies or extra info for each listing.

05

Client-editable content

Let clients edit FAQs in simple fields without touching the page layout.

06

SEO landing pages

Add FAQ schema to landing pages without writing any JSON.

Settings reference

Every control, explained

This is the full list of settings in the Breakdance editor, with their default values.

ControlWhat it doesDefault
Content
Field SourceAuto Detect, ACF, Meta Box, ACPT, Pods, JetEngine, Phox Studio or native WordPress meta.Auto Detect
Data LocationRead the repeater from the current post or page, or from an options page.Current post
Repeater NameThe name of the repeater field, e.g. faq_items.—
Title FieldThe sub-field used for each question, e.g. question.—
Content FieldThe sub-field used for each answer, e.g. answer.—
Single OpenClose other items when one opens.Off
Open First ItemShow the first item open on page load.Off
Title Heading Tagp, div, or h2 to h6.p
Enable FAQ SchemaOutput FAQ structured data for search engines.Off
Design
Width & bordersContainer width and border settings.100%
GapSpace between accordion items.—
ColoursTitle background, active title, and content background.Active title #6D6D6D
PaddingTitle padding and content padding.—
IconsOpen and close icons, icon colour, open colour and size.Plus / cross, 16px
AlignmentTitle and content alignment.—
BordersBottom-only option, border width, colour and radius.—
TypographyTitle, active title and content text styles.—
Tips & FAQ

Good to know

Which field plugins does it support?

ACF, Meta Box, ACPT, Pods, JetEngine, Phox Studio and native WordPress meta. Leave Field Source on Auto Detect and it will work out which one you are using.

Can I use the same FAQ on several pages?

Yes. Put the repeater on an options page and set Data Location to Options/Settings Page. Every Accordion Repeater that points at it will show the same rows.

What does FAQ schema do?

It adds structured data to the page describing each question and answer. Search engines can use it to understand your FAQ. Only turn it on for real question-and-answer content.

Can I use it in a template?

Yes. With Data Location set to the current post, one template can show a different FAQ for every post, taken from that post's own repeater.

Do I need a custom field plugin?

No. With Field Source set to Native WordPress Meta, it reads an array of rows saved in ordinary post meta. Three of the demos above work this way.

Add Accordion Repeater to your next page

Accordion Repeater is included with Phox Elements, along with 140+ other premium elements for Breakdance.