Black Friday Sale
Upto 40% OFF
Discount Auto Applied
Days
Hours
Seconds
Have you ever tried to implement accordions dynamically for displaying data from the ACF Repeater Fields? If not, then why not just give it a try? Using Accordions can be a handy way for managing larger amounts of data as through then data can be represented in small bits.
To achieve this, you can use our plugin AnyWhere Elementor Pro, which allows you to display data from the ACF Repeater fields differently.
So in this tutorial, we will be displaying the ACF Repeater fields data in an Accordion using AE – ACF Repeater widget in Elementor.
To begin with, let us consider an example of an FAQ section under an options page named Company.
Add the following code in function.php of the child theme.
if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'page_title' => 'Company',
'menu_title' => 'Company',
'menu_slug' => 'company',
'capability' => 'edit_posts',
'redirect' => 'false'
));
}
For creating a dynamic accordion in Elementor, we first have to design a layout for the content inside an accordion:
Pro Tip: Make sure to design the complete block layout in a Single Parent Section. You can use the inner section widget if required.
Use the ACF Repeater widget wherever you need to for creating a dynamic Elementor accordion, and do the following configurations.
Will this add a FAQ Schema?
No, it will not add an FAQ Schema.