该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Inserter

描述

Inserter allows you to create custom templates from your dashboard and insert the in your pages, replacing a CSS selector of your choosing.

You can use the WordPress Templates Interpolation for underscore.js and include JS-based logic in your templates.

You can expose data using the REST API, using the global $post object, or provide your own JSON-formatted data.
To see the available data, you can add this line in your template and then check the console when your site loads:
<# console.log( data ); #>

You can read more about how to use the plugin on https://aristath.github.io/wordpress/introducing-wordpress-inserter-plugin.

安装

Simply install as a normal WordPress plugin and activate.

常见问题

Installation Instructions

Simply install as a normal WordPress plugin and activate.

评价

此插件暂无评价。

贡献者及开发者

「Inserter」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Inserter」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1

February 17, 2018

  • Add append and prepend modes in addition to replace.
  • Require “element” field to be defined when adding/editing template

1.0

February 12, 2018

  • Initial version