這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Concat Parent Page Slugs

外掛說明

The ‘Concat Parent Page Slugs’ add template file loading rule for ‘Pages’.
When loading the template of the child page, preferentially loading the template file that concatenated parent page slugs.
For example, create a page with slug ‘foo’, ‘bar’.
‘foo’ is the parent, ‘bar’ is the child.
Normally the template file for slug ‘bar’ will be ‘page-bar.php’, using this plugin adds parent slugs to child slug, like ‘page-foo.bar.php’.
Of course it is also possible to change the delimiter to ‘page-foo_bar.php’.

Sample.
[slug] : [template]
company : page-company.php
|- info : page-company.info.php
|- access : page-company.access.php
|- map : page-company.access.map.php

product : page-product.php
|- info : page-product.info.php

Concat Parent Page Slugs は、固定ページのテンプレートファイル読み込みルールを追加します。
子ページのテンプレートファイルを読み込む場合に、親ページのスラッグを連結したテンプレートファイルを優先的に読み込むようになります。
例えば、foo と bar というスラッグで固定ページを作成したと仮定します。 fooが親 で barが子 です。
通常であればスラッグ bar のテンプレートファイルは page-bar.php になりますが、このプラグインを使用すると親のスラッグが追加された page-foo.bar.php を読み込むようになります。
もちろん区切り文字を変更して page-foo_bar.php のようにすることも可能です。

螢幕擷圖

  • screenshot-1.png

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/concat-parent-page-slugs directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Concat Parent Page Slugs screen to configure the plugin

常見問題集

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/concat-parent-page-slugs directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Concat Parent Page Slugs screen to configure the plugin

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Concat Parent Page Slugs〉的開發相關工作。

參與者

將〈Concat Parent Page Slugs〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.5.1

  • Delete unnecessary files.

0.5.0

  • Initial release.