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

Add Page From Template

描述

Are you tired to create pages through different environments?

  • Add Virtual WordPress ‘page’ from php template file automatically
  • Not needed to add ‘page’ from admin panel

    The page-xxx.php would be located at ‘themes/your-theme/page-foobar.php’ then the page will be created as ‘http://www.example.com/foobar/’ without admin panel.

螢幕截圖

  • Virtual page would be made.
  • Just make a page-foobar.php at your themes/pages directory.

安裝

  1. Download the Add Page From Templete plugin.
  2. Decompress the ZIP file and upload the contents of the archive intot /tp-content/plugins/.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Activate Custom permalink setting. (Make sure .htaccess file is generated)

常見問題

How to add the virtual page?

Put your template file into your ‘themes/yourtheme/pages/’.
(‘themes/yourtheme/pages/’: default)
Make the template page name ‘page-xxx.php’.

I put file but I cannot see the page. Why?

Check the template file located at correctly directory.
The default directory is ‘wp-content/themes/yourtheme/pages/’.

Check whether the same slug page * NOT EXISTS *.
You can check the conflict at the plugin setting page.

Check custom permalink setting is activated.

Please send the problem to the author.
https://github.com/yousan/add-page-from-template/issues

評價

There are no reviews for this plugin.

貢獻者及開發者

“Add Page From Template” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Add Page From Template 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

Version 0.4.4.1

  • Fixed: Remove critical bug.

Version 0.4.4

  • Fixed: Set Title when called at wp_title().

Version 0.4.3.1

  • Fixed: Set title correctly.

Version 0.4.3

  • Upgraded: Show title from template file.

Version 0.4.2

  • Fixed: Removed a warning.

Version 0.4.1

  • Fixed: For old WP_version <= 4.3.

Version 0.4

  • Fixed: APFT Overrides global $post. Now we can use function/tags which refers to global $post such as get_post_type().

Version 0.3

  • Fixed: Removed debug code.
  • Fixed: Added pagename when apft virtual page loaded.

Version 0.2

  • Fixed: version number.
  • Fixed: Reload pages when the plugin is activated.

Version 0.1

  • Fixed: Remove Warning.

Version 0.0.1

  • Upgraded: Added template list table at the setting page.

Version 0.0.0.1

  • Plugin is born.