[wordpress插件] Advanced Custom Fields: Menu Field高级自定义字段:菜单字段

wordpress 插件 文章 2020-02-07 06:20 578 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

This plugin provides a ‘Menu’ field type for the Advanced Custom Fields

此插件为高级自定义字段提供一个“菜单”字段类型

WordPress plugin.

WordPress插件。

This makes users able to link a WordPress Menu

这使用户能够链接 WordPress菜单

to posts, pages and custom post types.

到帖子,页面和自定义帖子类型。

Compatibility

兼容性

This add-on will work with:

该插件可以使用:

    • version 4 and up
    • 版本4及更高版本

    • version 3 and bellow
    • 版本3和以下版本

    Requirements

    要求

    This add-on is only supported on PHP 5.3 and up.

    此附加组件仅在PHP 5.3及更高版本中受支持。

安装步骤

This add-on can be treated as both a WP plugin and a theme include.

此附加组件可以被视为WP插件和主题包含。

Plugin

插件

    1. Copy the ‘acf-menu’ folder into your plugins folder
    2. 将“ acf-menu”文件夹复制到您的插件文件夹中

    3. Activate the plugin via the Plugins admin page
    4. 通过“插件管理”页面激活插件

    Include

    包含

      1. Copy the ‘acf-menu’ folder into your theme folder (can use sub folders).

      2. 将“ acf-menu”文件夹复制到您的主题文件夹中(可以使用子文件夹)。

        You can place the folder anywhere inside the ‘wp-content’ directory

      3. 您可以将文件夹放置在“ wp-content”目录内的任何位置

      4. Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-menu.php file)

        编辑您的functions.php文件并添加以下代码(请确保路径正确以包含acf-menu.php文件)

        include_once(‘acf-menu/acf-menu.php’);

        include_once(‘acf-menu / acf-menu.php’);

下载地址

https://downloads.wordpress.org/plugin/advanced-custom-fields-menu-field.1.0.0.zip

https://downloads.wordpress.org/plugin/advanced-custom-fields-menu-field.1.0.0.zip

-EOF-

AI助手支持GPT4.0