Hierarchy
Properly structure your Pages, Posts, and Custom Post Types
Hierarchy allows you to contextually include your Custom Post Types within your Pages. Please see the introduction.
| Author | Jonathan Christopher Profile |
| Contributors | jchristopher |
| Tags | CPT, custom post types, hierarchy, pages, routing, url |
- Upload Hierarchy to your
/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
0.4
- You can now implement pagination on the main 'Content' page
- Aded entry count when considering CPTs to better call attention to posts within
- Cleaned up a PHP Warning
0.3
- Added a fix for CPTs not being nested properly in WordPress 3.4+
0.2
- Added a contextual CPT management link to the admin sidebar that displays only when editing an entry of that CPT
- Added option to include CPT entries within the Hierarchy. Added option to omit a CPT from the Hierarchy entirely.
- CPT with a rewrite slug that matches an existing Page will respect that relationship and be inserted as a child of that Page
- Posts Page is now placed properly when a custom permalink front has been put in place
0.1
- Initial release
How to I set up a Custom Post Type as a child?
This relationship is established by the rewrite parameter you used in your call to register_post_type() — it should use your desired parent as a base. For example:
You have a WordPress page with the slug of about and you have a CPT for Team. Simply set the rewrite parameter for your Team CPT to be about/team and Hierarchy will include Team as a child of About.
Roadmap
- Edge case fixes




