You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment Page Templates are not being picked up across the theme. Grandchild Themes pick up templates from Infinity just fine, but it skips the child theme page templates.
Apparently there is a filter on the function that retrieves the page templates:
I have some bad news man. I just spent 90 minutes looking into this, and as of 3.4.1 this is not possible. The page template must exist in the root theme (aka. "template") or the active theme (aka. "stylesheet"). Any theme in the meat of the stack can't have page templates.
I found the exact code which locates page templates, and there is no filter anywhere even close. There might be this crazy backdoor way to inject a list of page templates directly into the wp cache, which is where the page templates are stored, but that just seems really risky. Maybe if this becomes a major issue we can add it as experimental code which gets flipped on with a constant or something.
Ok, so there is finally a filter! But it doesn't have anything to do with paths, and you can't add more templates. There may be additional filters higher up the call stack, so more investigation is needed.
At the moment Page Templates are not being picked up across the theme. Grandchild Themes pick up templates from Infinity just fine, but it skips the child theme page templates.
Apparently there is a filter on the function that retrieves the page templates:
http://core.trac.wordpress.org/browser/branches/3.0/wp-includes/theme.php#L917
This post on Stackexchange contains some extra pointers on how this can be used in practice:
http://wordpress.stackexchange.com/questions/3396/create-custom-page-templates-with-plugins/3558#3558
The text was updated successfully, but these errors were encountered: