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

Custom Field Variables

描述

Enables the display of custom-field variables in the WordPress post editor via a TinyMCE button. Works well with custom post types as well as default post types.

Use the TinyMCE button to choose from a list of custom fields attached to the post to insert, or manually specify a custom field to display using the following syntax:

{%custom_field_name%}

屏幕截图

  • Example of variables used in post editor.
  • Example output of said variables.
  • TinyMCE toolbar modal for selecting and inserting custom-field variables.

安装

  1. Upload custom-field-variables to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Edit a post, page or custom post type, and use the TinyMCE toolbar button to insert field content.

常见问题

Installation Instructions
  1. Upload custom-field-variables to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Edit a post, page or custom post type, and use the TinyMCE toolbar button to insert field content.
Are there limitations on the types of data that can be displayed?

This plugin assumes you want to output the raw content of the custom field, and works best for string values — i.e. a custom field with an alphanumeric value. It will not properly display custom field content outside of that realm, such as fields containing arrays, JSON, or other structured data.

评价

此插件暂无评价。

贡献者及开发者

“Custom Field Variables” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Custom Field Variables”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.0.1

Adds localization to tinyMCE script and POT file

1.0.0

Initial release.