WordPress.org

Plugin Directory

Hierarchy

Properly structure your Pages, Posts, and Custom Post Types

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.

Requires: 3.3 or higher
Compatible up to: 3.5.1
Last Updated: 2013-3-20
Downloads: 1,617

Ratings

4 stars
4.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
100,1,1
0,1,0
100,1,1 100,1,1