[wordpress插件] Add to Menu添加到菜单

wordpress 插件 文章 2020-01-31 15:00 662 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

Quickly add Pages, Posts, or any custom post type posts to any of your menus while you are editing the post.

在编辑帖子时,可以将页面,帖子或任何自定义帖子类型的帖子快速添加到您的任何菜单中。

Check the checkbox for the menu to add a menu item to, save, and then go to the admin menu page to see the new menu item.

选中菜单复选框,以将菜单项添加到,保存,然后转到管理菜单页面以查看新菜单项。

On the edit page, down along the side is a ‘Add to menu’ box that has a list of the menus you have setup with checkboxes.

在编辑页面上,旁边是“添加到菜单”框,其中包含您已设置复选框的菜单列表。

If the post has already been added, then the checkbox is checked and disabled.

如果已添加该帖子,则选中并禁用该复选框。

If it has not been added to the menu, you can check the checkbox and save the post to add it.

如果尚未将其添加到菜单中,则可以选中该复选框并保存帖子以将其添加。

Afterwards, go to the Menu admin page to move (if wish) and publish the new menu item.

然后,转到菜单管理页面以移动(如果需要)并发布新的菜单项。

You can control which post types get the box by going to the ‘Settings > Add to menu’ page.

您可以通过转到“设置>添加到菜单”页面来控制哪些帖子类型会收到该框。

If the post type has hierarchal structure (such as parent Pages), this will try to place the new menu item underneath a menu item that links to an ancestor post (if menu item exists).

如果帖子类型具有层次结构(例如父页面),这将尝试将新菜单项放置在链接到祖先帖子的菜单项下面(如果菜单项存在)。

安装步骤

    1. Upload add-to-menu directory to your /wp-content/plugins/ directory
    2. 添加到菜单目录上载到 / wp-content / plugins / 目录

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

    5. Configure what post types to add the box through ‘Settings > Add to menu’
    6. 通过“设置>添加到菜单”配置要添加框的帖子类型

下载地址

https://downloads.wordpress.org/plugin/add-to-menu.0.1.0.zip

https://downloads.wordpress.org/plugin/add-to-menu.0.1.0.zip

-EOF-

AI助手支持GPT4.0