[wordpress插件] Ajax Load More for Advanced Custom FieldsAjax为高级定制字段加载更多

wordpress 插件 文章 2020-02-13 19:40 498 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

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.

高级自定义字段的Ajax加载更多提供了附加功能,可通过Ajax Load More无限滚动灵活的内容,库,转发器和关系字段数据。

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>

Supported Field Types

支持的字段类型

The following ACF Field Types are supported:

支持以下ACF 字段类型

    • 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.

    激活“高级自定义字段”扩展后,可以使用以下“ Ajax加载更多”短代码参数。

      • acf – Enable compatibility with Advanced Custom Fields.

      • acf –启用与“高级自定义字段”的兼容性。

        (true/false)

      • (是/否)

      • acf_post_id – The ID of the current page/post.

      • acf_post_id –当前页面/帖子的ID。

        Default = $post->ID

      • 默认值= $ post-> ID

      • acf_field_type – The type of ACF field.

      • acf_field_type – ACF字段的类型。

        (gallery/flexibleelationshipepeater)

      • (图库/灵活/关系/中继器)

      • acf_field_name – The name of the ACF field.
      • acf_field_name – ACF字段的名称。

      Example Shortcode

      简码示例

      [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}”]]

安装步骤

Uploading in WordPress Dashboard

在WordPress仪表板中上传

    1. Navigate to the ‘Add New’ in the plugins dashboard
    2. 导航至插件仪表板中的“添加新项”

    3. Navigate to the ‘Upload’ area
    4. 导航到“上传”区域

    5. Select ajax-load-more-for-acf.zip from your computer
    6. 从计算机中选择 ajax-load-more-for-acf.zip

    7. Click ‘Install Now’
    8. 点击“立即安装”

    9. Activate the plugin in the Plugin dashboard
    10. 在“插件”信息中心中激活插件

    Using FTP

    使用FTP

      1. Download ajax-load-more-acf.zip.
      2. 下载 ajax-load-more-acf.zip

      3. Extract the ajax-load-more-for-acf directory to your computer.
      4. ajax-load-more-for-acf 目录提取到您的计算机中。

      5. Upload the ajax-load-more-for-acf directory to the /wp-content/plugins/ directory.
      6. ajax-load-more-for-acf 目录上载到 / wp-content / plugins / 目录。

      7. Ensure Ajax Load More is installed prior to activating the plugin.
      8. 确保在激活插件之前已安装Ajax Load More。

      9. Activate the plugin in the WP plugin dashboard.
      10. 在WP插件仪表板中激活插件。

下载地址

https://downloads.wordpress.org/plugin/ajax-load-more-for-acf.zip

https://downloads.wordpress.org/plugin/ajax-load-more-for-acf.zip

-EOF-

AI助手支持GPT4.0