Title: Custom Field Builder &#8211; WordPress custom fields plugin
Author: kirillbdev
Published: <strong>2018 年 11 月 17 日</strong>
Last modified: 2019 年 3 月 5 日

---

搜索插件

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

![](https://ps.w.org/custom-field-builder/assets/icon-128x128.jpg?rev=1977675)

# Custom Field Builder – WordPress custom fields plugin

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

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

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

 [支持](https://wordpress.org/support/plugin/custom-field-builder/)

## 描述

**Custom Field Builder is a powerful and lightweight developer plugin to create 
custom meta boxes and custom fields for WordPress.**

#### Features

• Many free custom fields (regular updating and adding new fields).
 • Easy to install
and very easy to use. • Pure and clean code (increase your admin performance).

#### Links

• [Documentation](http://cfbuilder.kirillbdev.pro)

#### Available fields

• Textbox
 • Textarea • Select • Media (image, attachments) • Logic (checkbox may
only “true” or “false”) • Color picker • Repeater • Checkbox group • Date picker•
Post relationship

### Usage

Watch this short video tutorial

Add the following code to your functions.php (or in any convenient file).

    ```
    <?php
        add_action('cf_builder_init', function ($cfBuilder) {
            $cfBuilder->registerTemplate([
                'id'          => 'custom_fields',
                'title'       => 'Custom Field Builder example',
                'post_type'   => 'post',
                'position'    => 'normal',
                'priority'    => 'high',
                'fields'      => [

                    'author_name' => [
                        'type'    => 'textbox',
                        'title'   => 'Author name'
                    ],

                    'author_bio' => [
                        'type'    => 'textarea',
                        'title'   => 'Author bio'
                    ]

                ]
            ]);
        });
    ?>
    ```

You also can include your custom template in php file. For example:

    ```
    <?php
        add_action('cf_builder_init', function ($cfBuilder) {
            $cfBuilder->registerTemplate('path_to_your_template_file.php');
        });
    ?>
    ```

** See all fields example in examples/base-fields-template.php in plugin directory!**

## 屏幕截图

 * [[
 * Register custom fields template in functions.php file.
 * [[
 * Custom fields
 * [[
 * Repeater field

## 安装

Via [Composer](http://getcomposer.org/).

    ```
    composer require kirillbdev/custom-field-builder:dev-master
    ```

To do an automatic install of Custom Field Builder, log in to your WordPress dashboard,
navigate to the Plugins menu and click Add New.

In the search field type “cfb” or “Custom Field Builder” and click Search Plugins.
Once you have found it you can install it by simply clicking “Install Now”.

The WordPress codex contains [instructions on how to install a WordPress plugin](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

## 评价

![](https://secure.gravatar.com/avatar/e6a8b53a28c7acd37a10bb3b4a584e8870a55b2601812595751cd476f4df7b25?
s=60&d=retro&r=g)

### 󠀁[Simple and powerful](https://wordpress.org/support/topic/simple-and-powerful-114/)󠁿

 [devbloger](https://profiles.wordpress.org/devbloger/) 2018 年 11 月 20 日

This is what I was looking for! I would also like to see front-end api in next version.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/custom-field-builder/reviews/)

## 贡献者及开发者

「Custom Field Builder – WordPress custom fields plugin」是开源软件。 以下人员对
此插件做出了贡献。

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### Version 1.2.4 / (05.03.2019)

 * Editor Field release (See example file)

#### Version 1.2.3 / (18.12.2018)

 * Some bug fix and refactoring.

#### Version 1.2.2 / (13.12.2018)

 * Fix bug when textarea in repeater not save new line char.

#### Version 1.2.1 / (02.12.2018)

 * getPostFields API method release (see more in [Documentation](http://cfbuilder.kirillbdev.pro)).
 * Fixed error when call API method getPostField on Repeater which contains Checkbox
   group field.

#### Version 1.2.0 / (28.11.2018)

 * Front-end API release (see more in [Documentation](http://cfbuilder.kirillbdev.pro)).

#### Version 1.1.6 / (22.11.2018)

 * Fix post relationship field (not working for WooCommerce).

#### Version 1.1.5 / (22.11.2018)

 * Added Post relationship field.

#### Version 1.1.1 / (20.11.2018)

 * Added Date picker field.

#### Version 1.1.0 / (18.11.2018)

 * Added Checkbox group field.
 * Fixed repeater bug, when not saved some field types.

#### Version 1.0.1 / (18.11.2018)

 * Fix bug when repeater save previous values when was empty.

#### Version 1.0.0 / (14.11.2018)

 * initial release.

## 额外信息

 *  版本 **1.2.4**
 *  最后更新：**7 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **5.0.0**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-field-builder/)
 * 标签
 * [custom fields](https://cn.wordpress.org/plugins/tags/custom-fields/)[Custom Meta](https://cn.wordpress.org/plugins/tags/custom-meta/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-field-builder/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/custom-field-builder/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/custom-field-builder/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/custom-field-builder/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/custom-field-builder/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/custom-field-builder/reviews/?filter=1)

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

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

## 贡献者

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

## 支持

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

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