This WordPress plugin extends the functionality of Advanced Custom Fields (ACF) by introducing custom flexible content and repeated fields using WordPress's built-in functions. The plugin is designed to enhance content management capabilities, allowing for more dynamic and customizable layouts.
- Flexible Content Fields: Create dynamic content layouts with ease using flexible content fields.
- Repeated Fields: Add repeating groups of fields to enhance data entry and management.
- WordPress Integration: Leverages WordPress's built-in functions for seamless integration and performance.
- Custom Widgets: Extend WPBakery widgets with additional features (if applicable).
- WordPress 5.0 or higher
- Advanced Custom Fields (ACF) Pro
- WPBakery Page Builder (optional)
-
Upload the Plugin:
- Download the plugin from this repository.
- Upload the plugin files to the
/wp-content/plugins/
directory, or install the plugin through the WordPress plugins screen directly.
-
Activate the Plugin:
- Activate the plugin through the 'Plugins' screen in WordPress.
-
Setup ACF Fields:
- Navigate to the ACF settings in your WordPress dashboard.
- Create flexible content fields and repeated fields as needed.
- Use the built-in WordPress functions provided by this plugin to customize your fields.
-
Add a Flexible Content Field:
- Go to ACF and create a new field group.
- Add a flexible content field and define the layouts you want.
-
Use in Template:
- In your theme template file, use the following code to display the flexible content:
if( have_rows('your_flexible_content_field') ): while( have_rows('your_flexible_content_field') ): the_row(); // Your code to display each layout goes here endwhile; endif;
-
Add Repeater Field:
- In ACF, add a repeater field to your field group.
- Define the subfields that will be repeated.
-
Use in Template:
- In your theme template file, use the following code to loop through repeated fields:
if( have_rows('your_repeater_field') ): while( have_rows('your_repeater_field') ): the_row(); // Your code to display each repeated item goes here endwhile; endif;
This plugin is designed to be easily extendable. You can add your custom field types, modify the output, or integrate it with other plugins to suit your needs.
Contributions are welcome! Please open an issue or submit a pull request to help improve this plugin.
This plugin is licensed under the MIT License.