Linux 软件免费装

Page Template Extended

开发者 thomasdk81
更新时间 2015年9月10日 20:31
PHP版本: 2.5 及以上
WordPress版本: 4.3
版权: GPLv2 or later
版权网址: 版权信息

标签

page templates parent page template subpage template hierarchy is_page

下载

1.1 1.1.0.1 1.1.1 2.0

详情介绍:

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.

安装:

  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).

常见问题:

Why isn't this already built into WP?

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

更新日志:

2.0 september 2015 : Complete rewrite. Now using the right actions etc. No clutter, no options page.