{"id":19964,"date":"2012-09-28T01:28:44","date_gmt":"2012-09-28T01:28:44","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/child-page-templates\/"},"modified":"2012-09-28T01:28:44","modified_gmt":"2012-09-28T01:28:44","slug":"child-page-templates","status":"publish","type":"plugin","link":"https:\/\/ru.wordpress.org\/plugins\/child-page-templates\/","author":10153357,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"trunk","tested":"3.4.2","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"Child Page Templates","header_author":"Joe Anzalone","header_description":"","assets_banners_color":"","last_updated":"2012-09-28 01:28:44","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/joeanzalone.com\/plugins\/child-page-templates\/","header_plugin_uri":"http:\/\/JoeAnzalone.com\/plugins\/child-page-templates","header_author_uri":"http:\/\/JoeAnzalone.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3807,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","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.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[16450,1249],"plugin_category":[43],"plugin_contributors":[82773],"plugin_business_model":[],"class_list":["post-19964","plugin","type-plugin","status-publish","hentry","plugin_tags-template-hierarchy","plugin_tags-themes","plugin_category-customization","plugin_contributors-joe-anzalone","plugin_committers-joe-anzalone"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/child-page-templates.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Allows theme authors to include templates that will be automatically used based on the page's parent.<\/p>\n\n<p>For example, adding the file \"page-123.php\" to the \"child-page-templates\" folder in your theme directory will define the template for all pages that are children of the page with ID #123. You can also do the same thing with the post's slug.<\/p>\n\n<p>This template file will be used for all pages that are children of the page with ID #123:\n\/wp-content\/themes\/your-awesome-theme\/child-page-templates\/page-123.php<\/p>\n\n<p>This template file will be used for all pages that are children of the page with the \"team\" slug:\n\/wp-content\/themes\/your-awesome-theme\/child-page-templates\/page-team.php<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract the zip file and drop the contents in the wp-content\/plugins\/ directory of your WordPress installation and then activate the plugin from the \"Plugins\" page.<\/li>\n<li>Create a folder in your theme (or child theme, if you use one) called \"child-page-templates\"<\/li>\n<li>Add a PHP file named after the slug or ID of the parent page you want to use a custom template for.\n\n<ul>\n<li>For example: If you want every child page of your \"Portfolio\" page to use a particular template file, name that template file \"page-portfolio.php\"<\/li>\n<\/ul><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Will the child-page-templates folder in my theme directory get overwritten when a new version of my theme is released?<\/dt>\n<dd><p>Yes! If you didn't create your theme yourself, you should definitely be using a <a href=\"http:\/\/codex.wordpress.org\/Child_Themes\">child theme<\/a>.\nYour child-page-templates folder will be safe so long as you add it to a theme (or child theme) you created. Even when the parent theme upgrades, your child theme will be untouched.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>First public release<\/li>\n<\/ul>","raw_excerpt":"Allows theme authors to add page templates to their themes that will be automatically used based on the page&#039;s parent.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/19964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=19964"}],"author":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/joe-anzalone"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=19964"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=19964"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=19964"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=19964"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=19964"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=19964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}