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

Content Template Engine

外掛說明

This plugin enables Twig template engine in the WordPress contents.

You can write Twig template in your posts/pages.

{% if post.my_custom_field %}
    Hello {{ post.my_custom_field }}!
{% endif %}

See more information:

Features

  • It enables Twig template engine in your WordPress contents.
  • You can use post meta data in your template.
  • Advanced custom fields and Repeater Field ready.
  • Secure!
    • You can restrict users to write template.
    • Automatic escaping is enabled.
  • There are custom filters for WordPress. See also.
  • There are custom functions for WordPress. See also.

Reuqires

  • PHP 5.3 or later
  • WordPress 4.3 or later

螢幕擷圖

  • Settings meta box in edit posts screen.
  • Edit posts screen.
  • The Content.

安裝方式

  1. Upload to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

使用者評論

2016 年 9 月 3 日
This is what Wordpress needs in core as CMS. WP Toolset or Pods Framework includes similar function but sometimes too heavy for simple purpose.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Content Template Engine〉的開發相關工作。

參與者

將〈Content Template Engine〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

https://github.com/miya0001/content-template-engine/releases