Àpèjúwe
Allows theme authors to include templates that will be automatically used based on the pageÌtumọ̀ Yorùbá: ’s parent.
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Ìtumọ̀ Yorùbá: ’s slug.
This template file will be used for all pages that are children of the page with ID #123:
/wp-content/themes/your-awesome-theme/child-page-templates/page-123.php
This template file will be used for all pages that are children of the page with the “team” slug:
/wp-content/themes/your-awesome-theme/child-page-templates/page-team.php
Ìgbéwọlẹ̀
- 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.
- Create a folder in your theme (or child theme, if you use one) called “child-page-templates”
- Add a PHP file named after the slug or ID of the parent page you want to use a custom template for.
- 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”
FAQ
- Will the child-page-templates folder in my theme directory get overwritten when a new version of my theme is released?
-
Yes! If you didnÌtumọ̀ Yorùbá: ’t create your theme yourself, you should definitely be using a child theme.
Your 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.
Àwọn àgbéyẹ̀wò
Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.
Àwọn Olùkópa & Olùgbéejáde
“Child Page Templates” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.
Àwọn OlùkópaTúmọ̀ “Child Page Templates” sí èdè rẹ.
Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?
Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.
Àkọsílẹ̀ àwọn àyípadà
1.0.2
- First public release