{"id":14939,"date":"2011-09-19T14:20:01","date_gmt":"2011-09-19T14:20:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-post-type-tree\/"},"modified":"2012-05-28T21:59:36","modified_gmt":"2012-05-28T21:59:36","slug":"custom-post-type-tree","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/custom-post-type-tree\/","author":8342178,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.8","stable_tag":"1.8","tested":"3.3.2","requires":"3.2","requires_php":"","requires_plugins":"","header_name":"Custom Post Type Tree - parents children relationship","header_author":"Cristiano Carletti <cristianocarletti@gmail.com>","header_description":"","assets_banners_color":"","last_updated":"2012-05-28 21:59:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/cristianocarletti.com.br\/wordpress\/plugins\/custom-post-type-tree\/","header_author_uri":"http:\/\/cristianocarletti.com.br","rating":0,"author_block_rating":0,"active_installs":10,"downloads":4328,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8"],"block_files":[],"assets_screenshots":{"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1566898","resolution":"5","location":"plugin"},"screenshot-7.png":{"filename":"screenshot-7.png","revision":"1566898","resolution":"7","location":"plugin"},"screenshot-6.png":{"filename":"screenshot-6.png","revision":"1566898","resolution":"6","location":"plugin"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1566898","resolution":"4","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1566898","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1566898","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566898","resolution":"1","location":"plugin"}},"screenshots":{"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":"I added a post type Selos.","3":"I chose two custom post type as parents, jacuzzi_banheira and jacuzzi_spa.","4":"Opening the cutom post type Spa.","5":"I added a post SPA J180.","6":"I can see Selos registered and choose which I want to display in the template.","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."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[22051,9922,16829,4929,2219],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-14939","plugin","type-plugin","status-closed","hentry","plugin_tags-between","plugin_tags-child","plugin_tags-different","plugin_tags-parent","plugin_tags-relationship","plugin_committers-cristianocarletti"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-post-type-tree.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/custom-post-type-tree\/trunk\/screenshot-1.png?rev=1566898","caption":"Before starting, you have to create your Custom Post Type with an plugin or coding wordpress with register_post_type. I created: Selos."},{"src":"https:\/\/ps.w.org\/custom-post-type-tree\/trunk\/screenshot-2.png?rev=1566898","caption":"I added a post type Selos."},{"src":"https:\/\/ps.w.org\/custom-post-type-tree\/trunk\/screenshot-3.png?rev=1566898","caption":"I chose two custom post type as parents, jacuzzi_banheira and jacuzzi_spa."},{"src":"https:\/\/ps.w.org\/custom-post-type-tree\/trunk\/screenshot-4.png?rev=1566898","caption":"Opening the cutom post type Spa."},{"src":"https:\/\/ps.w.org\/custom-post-type-tree\/trunk\/screenshot-5.png?rev=1566898","caption":"I added a post SPA J180."},{"src":"https:\/\/ps.w.org\/custom-post-type-tree\/trunk\/screenshot-6.png?rev=1566898","caption":"I can see Selos registered and choose which I want to display in the template."},{"src":"https:\/\/ps.w.org\/custom-post-type-tree\/trunk\/screenshot-7.png?rev=1566898","caption":"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."}],"raw_content":"<!--section=description-->\n<p>Create Parents \/ Children Relationship between different post types checking one or more parent.<\/p>\n\n<h3>Please Vote and Enjoy<\/h3>\n\n<p>Your votes really make a difference! Thanks.<\/p>\n\n<h3>Atention<\/h3>\n\n<ol>\n<li>Before starting, you have to create your Custom Post Type with an plugin or coding wordpress with register_post_type.<\/li>\n<li>In case of Warning: Cannot modify header information - headers already sent by\nYou can activate the buffer using: ob_start();<\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Upload the folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Edit a page, post or custom post to choice the parents custom posts.<\/li>\n<li>See Screenshots for more details.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.7<\/h4>\n\n<p>Now posts and pages may be sons of custom posts, beyond their own custom posts.\nBug fix.<\/p>\n\n<h4>1.6<\/h4>\n\n<p>Bug fix. Shows only if there are parents.<\/p>\n\n<h4>1.5<\/h4>\n\n<p>Now you can define the parent post at the edit post page checking the boxes with parent post.<\/p>\n\n<h4>1.4<\/h4>\n\n<p>Added permalink to children post.<\/p>\n\n<h4>1.3<\/h4>\n\n<p>Added screenshot-10.png and screenshot-11.png<\/p>\n\n<h4>1.2<\/h4>\n\n<p>Added static function viewChildren to be used whit single.php<\/p>\n\n<h4>1.1<\/h4>\n\n<p>Screenshots added.<\/p>\n\n<h4>1.0<\/h4>\n\n<p>New plugin Custom Post Typ Tree - parent-child relationship\nThis version works with thumbnail, parent post, post id, post name and this post id of an custom post type tree<\/p>","raw_excerpt":"Create Parents \/ Children Relationship between different post types checking one or more parent.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14939"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/cristianocarletti"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14939"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14939"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14939"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14939"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14939"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}