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

Description

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

Please Vote and Enjoy

Your votes really make a difference! Thanks.

Atention

  1. Before starting, you have to create your Custom Post Type with an plugin or coding wordpress with register_post_type.
  2. In case of Warning: Cannot modify header information – headers already sent by
    You can activate the buffer using: ob_start();

Screenshots

  • Before starting, you have to create your Custom Post Type with an plugin or coding wordpress with register_post_type. I created: Selos.
  • I added a post type Selos.
  • I chose two custom post type as parents, jacuzzi_banheira and jacuzzi_spa.
  • Opening the cutom post type Spa.
  • I added a post SPA J180.
  • I can see Selos registered and choose which I want to display in the template.
  • 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.

Installation

  1. Upload the folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Edit a page, post or custom post to choice the parents custom posts.
  4. See Screenshots for more details.

Contributors & Developers

“Custom Post Type Tree – parents children relationship” is open source software. The following people have contributed to this plugin.

Changelog

1.7

Now posts and pages may be sons of custom posts, beyond their own custom posts.
Bug fix.

1.6

Bug fix. Shows only if there are parents.

1.5

Now you can define the parent post at the edit post page checking the boxes with parent post.

1.4

Added permalink to children post.

1.3

Added screenshot-10.png and screenshot-11.png

1.2

Added static function viewChildren to be used whit single.php

1.1

Screenshots added.

1.0

New plugin Custom Post Typ Tree – parent-child relationship
This version works with thumbnail, parent post, post id, post name and this post id of an custom post type tree