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

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

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

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Browse the code