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.
|Tags||CPT, custom post types, hierarchy, pages, routing, url|
- Upload Hierarchy to your
- Activate the plugin through the 'Plugins' menu in WordPress
- 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
- Added a fix for CPTs not being nested properly in WordPress 3.4+
- 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
- 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.
- Edge case fixes