[wordpress插件] Advanced Custom Fields: Link高级自定义字段:链接

wordpress 插件 文章 2020-01-26 22:40 564 0 全屏看文

AI助手支持GPT4.0

评分

86

86

描述

Integrates WordPress’ default link picker into Advanced Custom Fields

将WordPress的默认链接选择器集成到“高级自定义字段”中

As of ACF Pro 5.6.0, this field is built-in, so this plugin should not be used.

从ACF Pro 5.6.0开始,此字段是内置的,因此不应使用此插件。

Allows you to select an existing piece of content or enter a custom URL, set the link title, and choose whether or not the link should open in a new window/tab.

允许您选择现有内容或输入自定义URL,设置链接标题以及选择是否在新窗口/选项卡中打开链接。

Only works with ACF version 5 and above.

仅适用于ACF版本5及更高版本。

Requires PHP 5.4 or above.

需要PHP 5.4或更高版本。

After saving, you can access your data as an array:

保存后,您可以将数据作为数组访问:

array(    

  array(    

[url] => http://site.com/page/    

[url] => http://site.com/page/    

[title] => Page!    

[title] =>页面!    

[target] => 0

[目标] => 0

)

安装步骤

    1. Upload acf-link folder to the /wp-content/plugins/ directory
    2. acf-link 文件夹上载到 / wp-content / plugins / 目录

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

    5. When editing an ACF Field Group, select ‘Link’ as the field type
    6. 编辑ACF字段组时,选择“链接”作为字段类型

下载地址

https://downloads.wordpress.org/plugin/acf-link.1.1.7.zip

https://downloads.wordpress.org/plugin/acf-link.1.1.7.zip

-EOF-

AI助手支持GPT4.0