[wordpress插件] Advanced Custom Fields: NextGEN Gallery Field add-on高级自定义字段:NextGEN Gallery字段附加组件

wordpress 插件 文章 2020-02-07 08:00 519 0 全屏看文

AI助手支持GPT4.0

评分

42

42

描述

This is an add-on for the Advanced Custom Fields WordPress plugin and will not provide any

这是高级自定义字段 WordPress插件的附加组件,将不会提供任何插件

functionality to WordPress unless advanced Custom Fields is installed and activated.

除非已安装并激活了高级自定义字段,否则WordPress不会具有此功能。

The NextGEN Gallery field provides a dropdown (select or multi-select) of NextGEN Gallery names (galleries and albums) and the ability to map the selected NextGEN Gallery to the post.

NextGEN Gallery字段提供(选择或多选)NextGEN Gallery名称(画廊和专辑)的下拉列表,以及将所选NextGEN Gallery映射到帖子的功能。

The get_value() API returns an array of the selected NextGEN Gallery IDs and the form – album or gallery.

get_value()API返回一个数组,其中包含选定的NextGEN Gallery ID的数组,形式为相册或画廊。

Support ACF5 Pro, ACF4, ACF3, NextCellent Gallery – NextGEN Legacy.

支持ACF5 Pro,ACF4,ACF3,NextCellent Gallery – NextGEN Legacy。

!!!

!!!

Version 1.1 !!!

版本1.1 !!!



This version changes get_value() API returned value.

此版本更改了get_value()API返回的值。

You must change your template files.

您必须更改模板文件。

!!!

!!!

The get_value() API returns a following array:
    

get_value()API返回以下数组:
    

Array (
        

数组(
        

[0] => Array (
            

[0] =>数组(
            

[ngg_id] => 8 ( NextGEN Gallery ‘gallery’ or ‘album’ ID )
            

[ngg_id] => 8(NextGEN Gallery的“相册”或“相册” ID)
            

[ngg_form] => gallery ( ‘gallery’ or ‘album’ )
        

[ngg_form] =>图库(“图库”或“相册”)
        

)
    


    

)

Example

示例

These examples should show a NextGEN Gallery gallery or NextGEN Gallery album.

这些示例应显示NextGEN Gallery画廊或NextGEN Gallery相册。

For version 1.1 and later    

对于版本1.1和更高版本    

For version 1.0.2 and earlier    

对于1.0.2版和更早版本    

安装步骤

The NextGEN Gallery Field plugin can be used as WordPress plugin or included in other plugins or themes.

NextGEN Gallery Field插件可以用作WordPress插件,也可以包含在其他插件或主题中。

There is no need to call the Advanced Custom Fields register_field() method for this field.

无需为此字段调用高级自定义字段 register_field()方法。

    • WordPress plugin

    • WordPress插件

        1. Download the plugin and extract it to /wp-content/plugins/ directory.
        2. 下载插件并将其解压缩到 / wp-content / plugins / 目录。

        3. Activate the plugin through the Plugins menu in WordPress.
        4. 通过WordPress中的插件菜单激活插件。

下载地址

https://downloads.wordpress.org/plugin/advanced-custom-fields-nextgen-gallery-field-add-on.zip

https://downloads.wordpress.org/plugin/advanced-custom-fields-nextgen-gallery-field-add-on.zip

-EOF-

AI助手支持GPT4.0