[wp-hackers] Children template?

Bryan Harley bryanharley at gmail.com
Tue Feb 1 07:35:09 UTC 2011

Looking for a way to auto-apply a template to all of a page's
children.  Basically I don't want to go in and assign a custom
template for all the children pages.

Currently... we can create "page-slug.php" or "page-id.php" to apply a
template to a page automatically.   How can I do...
"page-slug-children.php"  or "page-id-children.php" to auto-apply the
template to all children?

Any ideas?

More information about the wp-hackers mailing list