=== Auto Collapse for Flexible Fields ===
Contributors: netgeneratorgmbh
Tags: acf, advanced custom fields, flexible content, collapse, acf collapse
Requires at least: 6.5
Tested up to: 6.8
Stable tag: 1.1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A simple plugin to automatically collapse all Flexible Content fields on page load for a cleaner admin interface.

== Description ==

By default, ACF Flexible Content fields are expanded when you load an edit screen in the WordPress admin. This can lead to a cluttered interface and excessive scrolling, especially on pages with many complex layouts.

This plugin solves that problem with a simple, lightweight solution. It automatically collapses all Flexible Content layouts upon page load, giving content editors a clean and organized overview. Editors can then expand only the specific layouts they need to work on.

This is a "set it and forget it" plugin with no settings required. Simply activate it, and it works.

**Note:** This plugin requires the [Advanced Custom Fields PRO](https://www.advancedcustomfields.com/pro/) plugin to be installed and active, as Flexible Content fields are a pro-only feature.

== Installation ==

= From your WordPress dashboard (Recommended) =

1. Navigate to 'Plugins' > 'Add New'.
2. Search for "ACF Auto Collapse Flexible Fields".
3. Click 'Install Now' and then 'Activate'.

= Manual Installation =

1. Download the plugin zip file and unzip it.
2. Upload the `acf-auto-collapse` folder to your `/wp-content/plugins/` directory.
3. Activate the plugin through the 'Plugins' menu in your WordPress dashboard.

That's it! No configuration is needed.

== Frequently Asked Questions ==

= Does this plugin have any settings? =

No. It works automatically out of the box. Just activate it.

= Does this work with the free version of ACF? =

No. This plugin specifically targets "Flexible Content" fields, which are a feature of ACF Pro. You must have ACF Pro installed and activated.

= Will this affect Repeater fields or other field types? =

No, this plugin is specifically designed to only collapse Flexible Content field layouts. All other fields, including Repeaters, will behave as usual.

== Screenshots ==

1. Before: ACF Flexible Content fields are expanded by default, creating a long page.
2. After: The same fields are now neatly collapsed on page load.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.0 =
This update improves compatibility with recent versions of ACF and WordPress. It is a recommended update for all users to ensure smooth operation.