[wordpress插件] Current Menu Item for Custom Post Types自定义帖子类型的当前菜单项

wordpress 插件 文章 2020-04-06 23:10 426 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

If you’re using a template to display a custom post type’s archive page, WP doesn’t add the active class to the menu item.

如果您使用模板显示自定义帖子类型的存档页面,则WP不会将活动类别添加到菜单项中。

This plugin lets you assign a parent page to a custom post types and will correctly display in the menu.

该插件可让您将父页面分配给自定义帖子类型,并将正确显示在菜单中。

安装步骤

    1. Install the plugin by uploading the zip file (Plugins > Add New > Upload)
    2. 通过上传zip文件(插件>添加新内容>上传)来安装插件

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

    5. Go to the Settings > Current Menu Item for Custom Post Types
    6. 转到“设置”>“自定义帖子类型的当前菜单项”

下载地址
https://downloads.wordpress.org/plugin/current-menu-item-for-custom-post-types.1.4.zip
-EOF-

AI助手支持GPT4.0