Linux 软件免费装
Banner图

ACF Repeater & Flexible Content Collapser

开发者 tmconnect
更新时间 2023年8月15日 17:20
捐献地址: 去捐款
PHP版本: 4.7 及以上
WordPress版本: 6.3
版权: GPLv2 or later
版权网址: 版权信息

标签

collapse expand acfpro acf advanced custom fields flexible content repeater

下载

1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.8 1.0.0 1.0.1 1.2.5 1.2.6 1.2.7

详情介绍:

If there are a lot of rows within a Repeater or Flexible Content field, you need to scroll a lot to get to the field you want to edit and it is not easy to find the right one. Also, it is difficult to change the order of the rows. The ACF Repeater & Flexible Content Collapser plugin solves this problem and add a button to collapse or expand all rows at once. ACF Repeater & Flexible Content Collapser works in Repeater and Flexible Content Fields and even if they are nested. And the plugin works in all layout modes - no matter whether it is a table, block or row layout. After plugin activation you get additional settings when you create an ACF Repeater or Flexible Content field. You can specify whether all fields of this field group are automatically collapsed when the page is loaded. And you can choose whether the button is only displayed with an icon or with the icon and a text. This plugin works with the ACF PRO (version 5.5.0 or higher) AND Advanced Custom Fields (version 5.7.0 or higher with either the Flexible Content Field or Repeater Field add-on). Localizations

安装:

  1. Upload the acf-repeater-flexible-content-collapser folder to your /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Done!

屏幕截图:

  • Works even if Repeater and Flexible Content fields are nested and in all layout modes

常见问题:

After collapsing Repeater fields, I can't expand a single repeater row

This is because ACF adds collapsing/expanding functions of a repeater row only if a sub field is specified in the settings of the repeater field to show when row is collapsed. If there's no sub field set in the Collapsed setting for the repeater field you can't expand/collapse a single row. I don't know, if this is a feature or a bug and reported this in the ACF support forum. In some cases, you may not have a field that should be displayed in the collapsed state. There's a workaround to solve this problem:

  1. Create a text field in the repeater, doesn’t matter what you call it
  2. Set this field as the field to show
  3. Delete the field you just created and selected
  4. Save the field group
Unfortunately, this bug does not seem to be fixed in the near future: "This needs to be repeated whenever you modify the field group, and it’s probably not a good idea to depend on bugs, but I’m guessing that this one isn’t going to be corrected any time soon, especially if no one reports it since it not breaking anything."

更新日志:

v1.2.8 v1.2.6 v1.2.5 v1.2.4 v1.2.3 v1.2.2 v1.2.1 v1.2.0 v1.1.0 v1.0.2 v1.0.1 v1.0.0