Ad Inserter
94Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...
Set a "parent page" for custom post types that is indicated in menus, lists of pages, and the Simple Section Navigation widget.
Custom Post Type Parents is a WordPress plugin designed to enhance navigation for custom post types by highlighting their parent pages in menus and lists. It works by integrating with WordPress functions that output page lists and menus, applying standard classes to indicate the current parent and ancestor pages. This is particularly useful for users managing sites with complex content structures involving custom post types.
The plugin allows you to select a parent page for each custom post type from the admin settings. Once configured, it automatically applies the appropriate CSS classes to the menus and lists, ensuring that users can easily identify the relationship between custom post types and their parent pages.
Best for: This plugin is suitable for WordPress users who manage custom post types and need improved navigation for their content.
What it does well
Where it falls short
Custom Post Type Parents provides a straightforward solution for enhancing menu navigation related to custom post types, making it a useful tool for specific WordPress site structures.
Mickey Kay's own description of Custom Post Type Parents, lightly tidied.
Compatible with PHP 8.2
Like this plugin? Please consider leaving a 5-star review.
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. 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.
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.
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).
Parent
* current-menu-parent
* current_page_parent
* current-custom-post-type-parent
* current-{post type}-parent
Ancestor
* current-menu-ancestor
* current_page_ancestor
* current-custom-post-type-ancestor
* current-{post type}-ancestor
Other plugins for custom content structures.
Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...
ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...
Checkout Field Editor (Checkout Manager) for WooCommerce – The best WooCommerce checkout manager plugin to man...
Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...
The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.
Admin UI for creating custom content types like post types and taxonomies