[WordPress] 外掛分享: ACF Beautiful Flexible

首頁外掛目錄 › ACF Beautiful Flexible
WordPress 外掛 ACF Beautiful Flexible 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(1 則評價)
1294 天前
最後更新
問題解決
WordPress 4.7+ PHP 5.6+ v1.0.5 上架:2022-05-07

內容簡介

啟用 ACF Beautiful Flexible 外掛,即可改善 ACF flexible 的使用者介面。預設使用隨機圖片,但建議自行新增圖片。

圖片慣例

圖片大小應為 366×150 或更大的 732×300。
圖片應以彈性鍵(push_2_light)命名,無底線,改為使用破折號(push-2-light.[檔案格式])。
以下檔案格式將以該順序進行解析:.jpg、.jpeg、.png 和 .gif。

圖片的儲存位置

圖片應儲存在你的佈景主題 wp-content\themes\my-theme\assets\acf-beautiful-flexible\ 中。如果你有一個子佈景主題,並在其中新增圖片,這些圖片將覆蓋父佈景主題的圖片。
圖片的優先順序:外掛資料夾內的圖片 > 子佈景主題內的圖片 > 主佈景主題內的圖片。

另外,你可以篩選此路徑,以將所有圖片收集到同一個資料夾中:
add_filter( ‘acf_beautiful_flexible.images_path’, $path );

最後,你可以像下面這樣篩選所有圖片:
add_filter( ‘acf_beautiful_flexible.images’, $images );

關於 ACF Beautiful Flexible

我是 Maxime Culea,我創建了這個外掛,目前只負責維護。我不保證提供免費的支援。此外,我感謝 Credits 中列出的其他人。

如果有任何問題,請考慮報告問題並耐心等待回應。
有任何程式碼建議嗎?我也在 GitHub 上!

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon