Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Custom Post Type Tree - parents children relationship

Create Parents / Children Relationship between different post types checking one or more parent.

  1. custom-post-type-tree screenshot 1

    Before starting, you have to create your Custom Post Type with an plugin or coding wordpress with register_post_type. I created: Selos.

  2. custom-post-type-tree screenshot 2

    I added a post type Selos.

  3. custom-post-type-tree screenshot 3

    I chose two custom post type as parents, jacuzzi_banheira and jacuzzi_spa.

  4. custom-post-type-tree screenshot 4

    Opening the cutom post type Spa.

  5. custom-post-type-tree screenshot 5

    I added a post SPA J180.

  6. custom-post-type-tree screenshot 6

    I can see Selos registered and choose which I want to display in the template.

  7. custom-post-type-tree screenshot 7

    And then they appear in the template, you can printing also using: customPostTypeTree::viewChildren($customPostTypeTree); on single.php code, or use the Array $customPostTypeTree as you wish.

Requires: 3.2 or higher
Compatible up to: 3.3.2
Last Updated: 5 years ago
Active Installs: 40+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1