這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

ACF Beautiful Flexible

描述

To use ACF Beautiful Flexible, simply activate the plugin to improve the ACF flexible UI. By default, it uses random images, but the idea is to customize them by adding your own.

Image convention

  • The size of image should be 366×150 or bigger 732×300.
  • They should be named based on the flexible key (push_2_light) with no underscores but dashes (push-2-light.[extension]).
  • The following extensions will be resolved in that order: .jpg, .jpeg, .png and .gif.

Where images should be situated

They should more likely be situated into your theme wp-content\themes\my-theme\assets\acf-beautiful-flexible\. But if you have a child-theme and added images into it, these will overwrite those from parent-theme.
The following directories will be solved according to order: plugin’s folder, child theme’s folder, theme’s folder.

Also note that you can filter this path to gather all your images into a same folder :
add_filter( ‘acf_beautiful_flexible.images_path’, $path );

Finally, you could filter all images like this :
add_filter( ‘acf_beautiful_flexible.images’, $images );

About ACF Beautiful Flexible

I, Maxime Culea, have created this plugin which I only maintain. I do not guarantee some free support. Also, thank others listed in the credits.

Consider reporting an issue and be patient.
Any code suggestions? I am on GitHub as well!

螢幕截圖

  • Show how ACF Beautiful Flexible improve the ACF’s layouts UI.

安裝

This plugin works only if the ACF Pro plugin is installed and activated.

Requirements

WordPress

  1. Download and install using the built-in WordPress plugin installer.
  2. Site activate in the \”Plugins\” area of the admin.
  3. Then add your awesome layouts images.

評價

2022年11月16日
For those of us that like to use ACF’s flexible content fields as a page builder, this is awesome. Thanks for making this!
閱讀全部1個評價

貢獻者及開發者

“ACF Beautiful Flexible” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 ACF Beautiful Flexible 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.4 – 2 Sept 2022

  • Fix escaping.

1.0.4 – 31 Aug 2022

  • Fix warnings for php 8.1.

1.0.3 – 05 Mai 2022

  • Publish on WordPress directory

1.0.1 – 30 April 2022

  • Compatibility with latest versions of ACF and WordPress.
  • Look for nested fields into repeaters and flexibles.

1.0.0

  • FIX #10: fix warning
  • Update readme with new requirements.
  • FEATURE #11: add more filetype.
  • FIX #10: fix warning.
  • FIX #8: breaking changes with ACF 5.7.0 by adding new JS.
  • Refactor way requirements are loaded by adding dedicated class.
  • #6: fix title display.
  • First version of the plugin.
  • Dynamically get flexible layouts.
  • Finish readme.
  • Add screenshot.
  • Add composer.json.
  • Init plugin.