Page Template Extended

Description

Create templates for a specific page by its ID.
The reason I made this plugin, was to have subpages inherit their parent pages template.
If the subpage doesn’t have a template assigned, the parent pages template will be used if it exists. It goes all the way up the hierarchy.

The plugin works with an infinite number of subpages. If lets say a subpage is 6 levels down.
It will look at the first parent for the template, if it doesn’t exist it will look one level up at the next parent.
So you can assign a template for the first level and fifth level. If you do so, level 1-4 would have the same page template and 5-6 a different page template.

If a template is assigned through the page edit screen, it will overwrite this.

Installation

  1. Upload the page-template-extended folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Create a page template in your theme folder (/themes/theme-name/page-"ID".php).

FAQ

Why isn’t this already built into WP?

I don’t know. Maybe the demand isn’t there.

Contributors & Developers

“Page Template Extended” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.1

Little bug fixing.

2.0 september 2015

Complete rewrite. Now using the right actions etc. No clutter, no options page.