高级自定义字段的Ajax加载更多 strong>提供了附加功能,可通过Ajax Load More无限滚动灵活的内容,库,转发器和关系字段数据。 p>Easily access Repeater, 中继器,
gallery/" rel="nofollow">Gallery, Flexible Content and <
gallery /“ rel =” nofollow“>画廊,灵活内容和<
a href="https://advancedcustomfields.comesourceselationship/" rel="nofollow">Relationship custom field data from a page or post and return the results to Ajax Load More for infinite scrolling.
页面或帖子中的href =“ https://advancedcustomfields.comesourceselationship/” rel =“ nofollow”>关系自定义字段数据,并将结果返回到Ajax Load More以进行无限滚动。
p>
>
View Documentation 查看文档 strong>
strong> p>
Supported Field Types
支持的字段类型 h4>
The following ACF Field Types are supported:
支持以下ACF 字段类型: p>
- Gallery – The gallery field provides a simple and intuitive interface for managing a collection of images.
- 画廊 strong> –“画廊”字段提供了一个简单直观的界面来管理图像集合。 li>
- 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.
- 灵活的内容 strong> –灵活的内容字段用作空白画布,您可以在其中完全控制订单地添加无限数量的布局。 li>
- Relationship – The Relationship field creates a very attractive version of the post object field.
- 关系 strong> –“关系”字段创建了一个非常吸引人的帖子对象字段版本。
With a Relationship field, you can select from pages + posts + custom post types.
在“关系”字段中,您可以从页面+帖子+自定义帖子类型中进行选择。 li>
- Repeater – The repeater field allows you to create a set of sub fields which can be repeated again and again whilst editing content.
- 中继器 strong> –中继器字段使您可以创建一组子字段,在编辑内容时可以重复这些子字段。 li>
ul>
Shortcode Parameters
简码参数 h4>
The following Ajax Load More shortcode parameters are available when the Advanced Custom Fields extension is activated.
激活“高级自定义字段”扩展后,可以使用以下“ Ajax加载更多”短代码参数。 p>
- acf – Enable compatibility with Advanced Custom Fields.
- acf strong> –启用与“高级自定义字段”的兼容性。
(true/false)
(是/否) li>
- acf_post_id – The ID of the current page/post.
- acf_post_id strong> –当前页面/帖子的ID。
Default = $post->ID
默认值= $ post-> ID li>
- acf_field_type – The type of ACF field.
- acf_field_type strong> – ACF字段的类型。
(gallery/flexibleelationshipepeater)
(图库/灵活/关系/中继器) li>
- acf_field_name – The name of the ACF field.
- acf_field_name strong> – ACF字段的名称。 li>
ul>
Example Shortcode
简码示例 h4>
[ajax_load_more repeater="default" acf="true" acf_field_type="repeater" acf_field_name="{your_custom_field_name}"] [ajax_load_more repeater =“ default” acf =“ true” acf_field_type =“ repeater” acf_field_name =“ {您的custom_field_name}”]]
code> pre>