AI助手支持GPT4.0
Like this plugin? 喜欢这个插件吗?Please consider leaving a 5-star review.请考虑留下5星评价。 strong> p >>This plugin is meant to solve the problem of highlighting “parent” pages for Custom Post Types in the menu and lists of pages.此插件用于解决在菜单和页面列表中突出显示“自定义帖子类型”的“父”页面的问题。It integrates with custom menu output as well as output for any functions like wp_list_pages() that utilize the page_css_class or nav_menu_css_class filters.它与自定义菜单输出以及使用 page_css_class code>或 nav_menu_css_class code>过滤器的 wp_list_pages() code>之类的任何功能的输出集成在一起。When viewing a custom post type, the assigned “parent page” will be indicated with standard WordPress classes (e.g. current_page_item) in navigation menus and lists of pages.查看自定义帖子类型时,将在导航菜单和页面列表中使用标准的WordPress类(例如current_page_item)指示分配的“父页面”。 p>Usage用法 h4>In the admin, navigate to Settings > Custom Post Type Parents在管理员中,导航至设置>自定义帖子类型的父母 strong> li>For each custom post type, use the dropdown to select a “parent page”对于每种自定义帖子类型,请使用下拉菜单选择一个“父页面” li> ol>Menus and lists of pages will now have the appropriate classes applied to the specified parent pages.菜单和页面列表现在将具有适用于指定父页面的适当类。Additionally, Custom Post Type Parents will apply these classes to Simple Section Navigation widgets, if the plugin is installed.<此外,如果已安装插件,则“自定义帖子类型的父母”会将这些类应用于简单节导航小部件。 /p>/ p>Classes课程 h4>Custom Post Type Parents applies the following classes to parent and ancestor pages (all classes are consistent with default WordPress classes and are backwards compatible).“自定义帖子类型”父母将以下类应用于父页面和祖先页面(所有类均与默认WordPress类一致并且向后兼容)。 p>Parent 父母 strong> * current-menu-parent* current-menu-parent * current_page_parent* current_page_parent * current-custom-post-type-parent* current-custom-post-type-parent * current-{post type}-parent*当前-{帖子类型}-父母 p>Ancestor 祖先 strong> * current-menu-ancestor*当前菜单祖先* current_page_ancestor* current_page_ancestor * current-custom-post-type-ancestor*当前自定义帖子类型的祖先* current-{post type}-ancestor*当前-{post type}-祖先 p>
喜欢这个插件吗?Please consider leaving a 5-star review.
Please consider leaving a 5-star review.
请考虑留下5星评价。 strong> p
>
This plugin is meant to solve the problem of highlighting “parent” pages for Custom Post Types in the menu and lists of pages.
此插件用于解决在菜单和页面列表中突出显示“自定义帖子类型”的“父”页面的问题。
It integrates with custom menu output as well as output for any functions like wp_list_pages() that utilize the page_css_class or nav_menu_css_class filters.
wp_list_pages()
page_css_class
nav_menu_css_class
它与自定义菜单输出以及使用 page_css_class code>或 nav_menu_css_class code>过滤器的 wp_list_pages() code>之类的任何功能的输出集成在一起。When viewing a custom post type, the assigned “parent page” will be indicated with standard WordPress classes (e.g. current_page_item) in navigation menus and lists of pages.查看自定义帖子类型时,将在导航菜单和页面列表中使用标准的WordPress类(例如current_page_item)指示分配的“父页面”。 p>Usage用法 h4>In the admin, navigate to Settings > Custom Post Type Parents在管理员中,导航至设置>自定义帖子类型的父母 strong> li>For each custom post type, use the dropdown to select a “parent page”对于每种自定义帖子类型,请使用下拉菜单选择一个“父页面” li> ol>Menus and lists of pages will now have the appropriate classes applied to the specified parent pages.菜单和页面列表现在将具有适用于指定父页面的适当类。Additionally, Custom Post Type Parents will apply these classes to Simple Section Navigation widgets, if the plugin is installed.<此外,如果已安装插件,则“自定义帖子类型的父母”会将这些类应用于简单节导航小部件。 /p>/ p>Classes课程 h4>Custom Post Type Parents applies the following classes to parent and ancestor pages (all classes are consistent with default WordPress classes and are backwards compatible).“自定义帖子类型”父母将以下类应用于父页面和祖先页面(所有类均与默认WordPress类一致并且向后兼容)。 p>Parent 父母 strong> * current-menu-parent* current-menu-parent * current_page_parent* current_page_parent * current-custom-post-type-parent* current-custom-post-type-parent * current-{post type}-parent*当前-{帖子类型}-父母 p>Ancestor 祖先 strong> * current-menu-ancestor*当前菜单祖先* current_page_ancestor* current_page_ancestor * current-custom-post-type-ancestor*当前自定义帖子类型的祖先* current-{post type}-ancestor*当前-{post type}-祖先 p>
page_css_class code>或 nav_menu_css_class code>过滤器的 wp_list_pages() code>之类的任何功能的输出集成在一起。When viewing a custom post type, the assigned “parent page” will be indicated with standard WordPress classes (e.g. current_page_item) in navigation menus and lists of pages.查看自定义帖子类型时,将在导航菜单和页面列表中使用标准的WordPress类(例如current_page_item)指示分配的“父页面”。 p>Usage用法 h4>In the admin, navigate to Settings > Custom Post Type Parents在管理员中,导航至设置>自定义帖子类型的父母 strong> li>For each custom post type, use the dropdown to select a “parent page”对于每种自定义帖子类型,请使用下拉菜单选择一个“父页面” li> ol>Menus and lists of pages will now have the appropriate classes applied to the specified parent pages.菜单和页面列表现在将具有适用于指定父页面的适当类。Additionally, Custom Post Type Parents will apply these classes to Simple Section Navigation widgets, if the plugin is installed.<此外,如果已安装插件,则“自定义帖子类型的父母”会将这些类应用于简单节导航小部件。 /p>/ p>Classes课程 h4>Custom Post Type Parents applies the following classes to parent and ancestor pages (all classes are consistent with default WordPress classes and are backwards compatible).“自定义帖子类型”父母将以下类应用于父页面和祖先页面(所有类均与默认WordPress类一致并且向后兼容)。 p>Parent 父母 strong> * current-menu-parent* current-menu-parent * current_page_parent* current_page_parent * current-custom-post-type-parent* current-custom-post-type-parent * current-{post type}-parent*当前-{帖子类型}-父母 p>Ancestor 祖先 strong> * current-menu-ancestor*当前菜单祖先* current_page_ancestor* current_page_ancestor * current-custom-post-type-ancestor*当前自定义帖子类型的祖先* current-{post type}-ancestor*当前-{post type}-祖先 p>
nav_menu_css_class code>过滤器的 wp_list_pages() code>之类的任何功能的输出集成在一起。When viewing a custom post type, the assigned “parent page” will be indicated with standard WordPress classes (e.g. current_page_item) in navigation menus and lists of pages.查看自定义帖子类型时,将在导航菜单和页面列表中使用标准的WordPress类(例如current_page_item)指示分配的“父页面”。 p>Usage用法 h4>In the admin, navigate to Settings > Custom Post Type Parents在管理员中,导航至设置>自定义帖子类型的父母 strong> li>For each custom post type, use the dropdown to select a “parent page”对于每种自定义帖子类型,请使用下拉菜单选择一个“父页面” li> ol>Menus and lists of pages will now have the appropriate classes applied to the specified parent pages.菜单和页面列表现在将具有适用于指定父页面的适当类。Additionally, Custom Post Type Parents will apply these classes to Simple Section Navigation widgets, if the plugin is installed.<此外,如果已安装插件,则“自定义帖子类型的父母”会将这些类应用于简单节导航小部件。 /p>/ p>Classes课程 h4>Custom Post Type Parents applies the following classes to parent and ancestor pages (all classes are consistent with default WordPress classes and are backwards compatible).“自定义帖子类型”父母将以下类应用于父页面和祖先页面(所有类均与默认WordPress类一致并且向后兼容)。 p>Parent 父母 strong> * current-menu-parent* current-menu-parent * current_page_parent* current_page_parent * current-custom-post-type-parent* current-custom-post-type-parent * current-{post type}-parent*当前-{帖子类型}-父母 p>Ancestor 祖先 strong> * current-menu-ancestor*当前菜单祖先* current_page_ancestor* current_page_ancestor * current-custom-post-type-ancestor*当前自定义帖子类型的祖先* current-{post type}-ancestor*当前-{post type}-祖先 p>
wp_list_pages() code>之类的任何功能的输出集成在一起。When viewing a custom post type, the assigned “parent page” will be indicated with standard WordPress classes (e.g. current_page_item) in navigation menus and lists of pages.查看自定义帖子类型时,将在导航菜单和页面列表中使用标准的WordPress类(例如current_page_item)指示分配的“父页面”。 p>Usage用法 h4>In the admin, navigate to Settings > Custom Post Type Parents在管理员中,导航至设置>自定义帖子类型的父母 strong> li>For each custom post type, use the dropdown to select a “parent page”对于每种自定义帖子类型,请使用下拉菜单选择一个“父页面” li> ol>Menus and lists of pages will now have the appropriate classes applied to the specified parent pages.菜单和页面列表现在将具有适用于指定父页面的适当类。Additionally, Custom Post Type Parents will apply these classes to Simple Section Navigation widgets, if the plugin is installed.<此外,如果已安装插件,则“自定义帖子类型的父母”会将这些类应用于简单节导航小部件。 /p>/ p>Classes课程 h4>Custom Post Type Parents applies the following classes to parent and ancestor pages (all classes are consistent with default WordPress classes and are backwards compatible).“自定义帖子类型”父母将以下类应用于父页面和祖先页面(所有类均与默认WordPress类一致并且向后兼容)。 p>Parent 父母 strong> * current-menu-parent* current-menu-parent * current_page_parent* current_page_parent * current-custom-post-type-parent* current-custom-post-type-parent * current-{post type}-parent*当前-{帖子类型}-父母 p>Ancestor 祖先 strong> * current-menu-ancestor*当前菜单祖先* current_page_ancestor* current_page_ancestor * current-custom-post-type-ancestor*当前自定义帖子类型的祖先* current-{post type}-ancestor*当前-{post type}-祖先 p>
When viewing a custom post type, the assigned “parent page” will be indicated with standard WordPress classes (e.g. current_page_item) in navigation menus and lists of pages.
查看自定义帖子类型时,将在导航菜单和页面列表中使用标准的WordPress类(例如current_page_item)指示分配的“父页面”。 p>
ol>
Menus and lists of pages will now have the appropriate classes applied to the specified parent pages.
菜单和页面列表现在将具有适用于指定父页面的适当类。
Additionally, Custom Post Type Parents will apply these classes to Simple Section Navigation widgets, if the plugin is installed.<
此外,如果已安装插件,则“自定义帖子类型的父母”会将这些类应用于简单节导航小部件。
/p>
/ p>
Custom Post Type Parents applies the following classes to parent and ancestor pages (all classes are consistent with default WordPress classes and are backwards compatible).
“自定义帖子类型”父母将以下类应用于父页面和祖先页面(所有类均与默认WordPress类一致并且向后兼容)。 p>
Parent
父母 strong> * current-menu-parent* current-menu-parent * current_page_parent* current_page_parent * current-custom-post-type-parent* current-custom-post-type-parent * current-{post type}-parent*当前-{帖子类型}-父母 p>Ancestor 祖先 strong> * current-menu-ancestor*当前菜单祖先* current_page_ancestor* current_page_ancestor * current-custom-post-type-ancestor*当前自定义帖子类型的祖先* current-{post type}-ancestor*当前-{post type}-祖先 p>
* current-menu-parent
* current_page_parent
* current-custom-post-type-parent
* current-{post type}-parent
*当前-{帖子类型}-父母 p>
Ancestor
祖先 strong> * current-menu-ancestor*当前菜单祖先* current_page_ancestor* current_page_ancestor * current-custom-post-type-ancestor*当前自定义帖子类型的祖先* current-{post type}-ancestor*当前-{post type}-祖先 p>
* current-menu-ancestor
*当前菜单祖先
* current_page_ancestor
* current-custom-post-type-ancestor
*当前自定义帖子类型的祖先
* current-{post type}-ancestor
*当前-{post type}-祖先 p>
/custom-post-type-parents
/wp-content/plugins/
/ custom-post-type-parents code>目录上传到 / wp-content / plugins / code>目录。 li>Activate Custom Post Type Parents through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活自定义帖子类型的父母。 li>
/ wp-content / plugins / code>目录。 li>Activate Custom Post Type Parents through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活自定义帖子类型的父母。 li>
原文出处:http://www.sanshu.cn/a/9704.html
群主管理都是支付大佬