Title: Custom Field Variables
Author: Edward
Published: <strong>2017 年 7 月 28 日</strong>
Last modified: 2017 年 7 月 30 日

---

搜索插件

![](https://ps.w.org/custom-field-variables/assets/banner-772x250.jpg?rev=1705172)

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

![](https://ps.w.org/custom-field-variables/assets/icon-256x256.jpg?rev=1705172)

# Custom Field Variables

 作者：[Edward](https://profiles.wordpress.org/wpnook/)

[下载](https://downloads.wordpress.org/plugin/custom-field-variables.zip)

 * [详情](https://cn.wordpress.org/plugins/custom-field-variables/#description)
 * [评价](https://cn.wordpress.org/plugins/custom-field-variables/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/custom-field-variables/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/custom-field-variables/#developers)

 [支持](https://wordpress.org/support/plugin/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 of variables used in post editor
.⌉[

Example of variables used in post editor.

[⌊Example output of said variables.⌉⌊Example output of said variables.⌉[

Example output of said variables.

[⌊TinyMCE toolbar modal for selecting and inserting custom-field variables.⌉⌊TinyMCE
toolbar modal for selecting and inserting custom-field 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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Edward ](https://profiles.wordpress.org/wpnook/)

[帮助将「Custom Field Variables」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-field-variables)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/custom-field-variables/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/custom-field-variables/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/custom-field-variables/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/custom-field-variables/)。

## 更新日志

#### 1.0.1

Adds localization to tinyMCE script and POT file

#### 1.0.0

Initial release.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-field-variables/)
 * 标签
 * [custom fields](https://cn.wordpress.org/plugins/tags/custom-fields/)[meta](https://cn.wordpress.org/plugins/tags/meta/)
   [tinyMCE](https://cn.wordpress.org/plugins/tags/tinymce/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-field-variables/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/custom-field-variables/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/custom-field-variables/reviews/)

## 贡献者

 *   [ Edward ](https://profiles.wordpress.org/wpnook/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/custom-field-variables/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://codewrangler.io)