=== Advanced Custom Fields Repeater & Flexible Content Fields Collapser === Contributors: mrwweb Tags: advanced custom fields, acf, repeater Requires at least: 3.0.0 Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=522061398 Tested up to: 3.9 Stable tag: 1.3.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Easier sorting for large repeated fields in the Advanced Custom Fields plugin. == Description == **This plugin requires both the [Advanced Custom Fields](http://wordpress.org/extend/plugins/advanced-custom-fields/) plugin (version 4.0+ only) *AND* one or both of the [Repeater Field](http://www.advancedcustomfields.com/add-ons/repeater-field/) or [Flexible Content Field](http://www.advancedcustomfields.com/add-ons/flexible-content-field/) paid add-ons (or the PRO plugin for ACF 5.0+).** Both add-ons make "ACF" much more powerful, but if you have more than few fields in either, it becomes unwieldy to sort. This plugin collapses each instance of the repeated fields—only for the "Row" layout with the Repeater Field—to allow for easy sorting. *To help identify each repeater field group when collapsed, the first field of each repeated field group is shown. See the screenshots for an example.* **Want support for the table layout? Sponsor an update!** [Contact me](http://mrwweb.com/contact/) about sponsoring this feature if you're interested. Contribute to [this plugin on GitHub](https://github.com/mrwweb/ACF-Repeater-Collapser). This plugin began as a [support forum thread](http://support.advancedcustomfields.com/discussion/comment/16239) on the ACF site. Sponsors: * [Angie Meeker Designs](http://angiemeekerdesigns.com/) — Single Row Collapsing Development Other contributors: * [brasofilo](http://profiles.wordpress.org/brasofilo/) * [weskoop](http://profiles.wordpress.org/weskoop/) * [philiphetue](https://github.com/philiphetue) == Frequently Asked Questions == = Where is the "Collapse Rows" button? I don't see it. = The plugin only supports the "Row" layout for repeaters. = Why don't rows collapse? / Why is the row only grayed out? = To help identify each repeater field group when collapsed, the first field of each repeated field group is shown. See the screenshots for an example. As a work around, use a short field (like a text field or dropdown) as the first row in a repeatable fieldset. = Can I collapse individual rows? = Now you can, as of version 1.3.0. = What exactly is the "Collapse All Rows" button behavior = With the addition of the ability to collapse single rows, the button now is always in "Collapse" mode unless all rows are collapsed. Then it's "Expand." == Installation == 1. Download the plugin. 1. Upload all files to /wp-content/plugins/ 1. Activate the plugin on the Plugins page. == Screenshots == 1. Even with a few fields per repeater instance, it becomes unwieldy to sort. 2. This plugin collapses all but the rows first field for easy sorting. (Only "Row Layout" fields are supported.) 3. Once collapsed, easily reorder your rows! 4. The plugin supports nested repeaters. 5. Flexible fields too! 6. New in v1.3.0, you can collapse individual fields! (Thanks to Angie Meeker Designs for sponsoring this feature.) == Changelog == = 1.3.0 (18 Jul 2014) = * [New] Ability to collapse single fields * [New] Added aria-expanded / aria-controls attributes on rows for improved accessibility * [Tweak] Clarified button text and added icons to buttons for improved UI * [Fix] Fixed errant closing tag on