[WordPress] 外掛分享: Ajax Load More for Advanced Custom Fields

首頁外掛目錄 › Ajax Load More for Advanced Custom Fields
WordPress 外掛 Ajax Load More for Advanced Custom Fields 的封面圖片
2,000+
安裝啟用
★★★★
4.6/5 分(5 則評價)
125 天前
最後更新
問題解決
WordPress 4.0+ v1.4.0 上架:2017-05-03

內容簡介

進階自訂欄位(Advanced Custom Fields)的 Ajax Load More 提供無限捲動(infinite scrolling)功能,可讓使用者輕鬆存取頁面或文章上的 Repeater、Gallery、Flexible Content 及 Relationship 自訂欄位,並回傳結果以供 Ajax Load More 進行無限捲動。

檢視使用說明文件

支援的欄位類型

本外掛支援以下進階自訂欄位的欄位類型:

Gallery – 提供管理圖片集合的簡單及直覺介面。
Flexible Content – 提供空白畫布,讓您可以新增無限數量的版面配置並完全掌控其順序。
Relationship – 創造類似文章物件欄位的美觀版本。使用 Relationship 欄位,您可以從頁面、文章及自訂文章類型等中進行選擇。
Repeater – 允許建立可重複編輯內容的子欄位集。

短碼參數

當進階自訂欄位外掛啟用時,以下 Ajax Load More 短碼參數便可使用。

acf – 啟用與進階自訂欄位的相容性(true/false)。
acf_post_id – 目前頁面或文章的 ID。預設值為 $post->ID。
acf_field_type – 進階自訂欄位的欄位類型(gallery/flexible/relationship/repeater)。
acf_field_name – 進階自訂欄位的欄位名稱。

短碼範例
[ajax_load_more repeater="default" acf="true" acf_field_type="repeater" acf_field_name="{欄位名稱}"]

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Ajax Load More for Advanced Custom Fields」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Ajax Load More for Advanced Custom Fields provides additional functionality for infinite scrolling Flexible Content, Gallery, Repeater and Relationship field data with Ajax Load More.
Easily access Repeater, Gallery, Flexible Content and Relationship custom field data from a page or post and return the results to Ajax Load More for infinite scrolling.
View Documentation
Supported Field Types
The following ACF Field Types are supported:

Gallery – The gallery field provides a simple and intuitive interface for managing a collection of images.
Flexible Content – The flexible content field acts as a blank canvas to which you can add an unlimited number of layouts with full control over the order.
Relationship – The Relationship field creates a very attractive version of the post object field. With a Relationship field, you can select from pages + posts + custom post types.
Repeater – The repeater field allows you to create a set of sub fields which can be repeated again and again whilst editing content.

Shortcode Parameters
The following Ajax Load More shortcode parameters are available when the Advanced Custom Fields extension is activated.

acf – Enable compatibility with Advanced Custom Fields. (true/false)
acf_post_id – The ID of the current page/post. Default = $post->ID
acf_field_type – The type of ACF field. (gallery/flexible/relationship/repeater)
acf_field_name – The name of the ACF field.
acf_parent_field_name – Access sub field data up to the three levels deep.
acf_row_index – Access sub field data in a Repeater or Flexible Content field by row index.

Example Shortcode
[ajax_load_more repeater="default" acf="true" acf_field_type="repeater" acf_field_name="{your_field_name}"]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon