[wordpress插件] Custom Post Type Submenu自定义帖子类型子菜单

wordpress 插件 文章 2020-04-09 08:50 478 0 全屏看文

AI助手支持GPT4.0

评分
40
描述

Adds a new menu item type that shows all posts for a given post type as children.

添加一个新的菜单项类型,该菜单项类型将给定帖子类型的所有帖子显示为子级。

If the post type has an archive, the parent menu item will link to the archive.

如果帖子类型具有存档,则父菜单项将链接到存档。

If there is no archive for a given post type, the parent will link to the first child.

如果没有给定帖子类型的存档,则父级将链接到第一个子级。

For Example: If you have a custom post type “products”, adding “products” to a nav-menu will result in a menu item “products” with all products in the submenu.

例如:如果您有一个自定义帖子类型“产品”,则在导航菜单中添加“产品”将导致菜单项“产品”及其子菜单中的所有产品。

Roadmap

路线图

    • Provide for configuration of limit (ie: numposts).
    • 提供限制配置(即numposts)。

安装步骤

    1. Upload menu-posts-in-category/ directory to the /wp-content/plugins/ directory
    2. menu-posts-in-category / 目录上载到 / wp-content / plugins / 目录

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

    5. Add a Custom Post Type to a WordPress menu
    6. 将自定义帖子类型添加到WordPress菜单

下载地址
https://downloads.wordpress.org/plugin/custom-post-type-submenu.zip
-EOF-

AI助手支持GPT4.0