{"id":15587,"date":"2011-11-06T14:00:06","date_gmt":"2011-11-06T14:00:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-use-parent-template\/"},"modified":"2011-12-06T11:06:12","modified_gmt":"2011-12-06T11:06:12","slug":"wp-use-parent-template","status":"publish","type":"plugin","link":"https:\/\/kea.wordpress.org\/plugins\/wp-use-parent-template\/","author":5766196,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.4","stable_tag":"trunk","tested":"3.2.1","requires":"3.2","requires_php":"","requires_plugins":"","header_name":"WP Use parent template","header_author":"kanonji","header_description":"","assets_banners_color":"","last_updated":"2011-12-06 11:06:12","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/kanonji\/wp-use-parent-template","header_author_uri":"http:\/\/twitter.com\/kanonji","rating":1,"author_block_rating":0,"active_installs":10,"downloads":2293,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2","0.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[89,3956,170,975],"plugin_category":[43],"plugin_contributors":[90172],"plugin_business_model":[],"class_list":["post-15587","plugin","type-plugin","status-publish","hentry","plugin_tags-category","plugin_tags-hierarchy","plugin_tags-page","plugin_tags-template","plugin_category-customization","plugin_contributors-kanonji","plugin_committers-kanonji"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-use-parent-template.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>Features<\/h4>\n\n<ul>\n<li>use parent template for child category.<\/li>\n<li>use parent template for child page.<\/li>\n<\/ul>\n\n<p>If you have works category with some child categories as followings, you may want to use 'category-works.php' for all three child categories. You need to copy as 'category-design.php' and the rest in default template hierarchy. WP Use parent template patches the template hierarchy to use parent template for these child categories. And also pages too.<\/p>\n\n<ul>\n<li>example.com\/works\/design<\/li>\n<li>example.com\/works\/illust<\/li>\n<li>example.com\/works\/photo<\/li>\n<\/ul>\n\n<h4>Category template hierarchy<\/h4>\n\n<ol>\n<li>category-{slug}.php<\/li>\n<li>category-{id}.php<\/li>\n<li>category-{parent slug}.php \/\/Add by WP Use parent template<\/li>\n<li>category-{parent id}.php \/\/Add by WP Use parent template<\/li>\n<li>category.php<\/li>\n<li>archive.php<\/li>\n<li>index.php<\/li>\n<\/ol>\n\n<h4>Page template hierarchy<\/h4>\n\n<ol>\n<li>custom template file<\/li>\n<li>page-{slug}.php<\/li>\n<li>page-{id}.php<\/li>\n<li>page-{parent slug}.php \/\/Add by WP Use parent template<\/li>\n<li>page-{parent id}.php \/\/Add by WP Use parent template<\/li>\n<li>page.php<\/li>\n<li>index.php<\/li>\n<\/ol>\n\n<p>See following for Wordpress default template hierarchy.\nhttp:\/\/codex.wordpress.org\/Template_Hierarchy<\/p>\n\n<h4>Notes<\/h4>\n\n<ul>\n<li>Able to use only one generation age template. 'category-child.php' is able to use as parent template for grandchild in the example of 'example.com\/parent\/child\/grandchild'.<\/li>\n<li>You may need to change parent template to handle child data.<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>0.4<\/h4>\n\n<ul>\n<li>Fix readme.txt<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Fix readme.txt<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Released.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>My local use.<\/li>\n<\/ul>","raw_excerpt":"To use parent template for child categories or pages. This plugin patches template hierarchy. This plugin is for who create or customize themes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=15587"}],"author":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kanonji"}],"wp:attachment":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15587"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15587"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15587"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15587"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15587"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}