WordPress.org

Ready to get started?Download WordPress

Plugin Directory

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: 2012-5-28
Downloads: 2,992

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1 100,1,1
100,1,1