该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

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