Title: Advanced Custom Fields Code Snippets
Author: kenkeydev
Published: <strong>2019 年 7 月 1 日</strong>
Last modified: 2019 年 7 月 1 日

---

搜索插件

![](https://ps.w.org/acf-code-snippets/assets/banner-772x250.png?rev=2115588)

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

![](https://ps.w.org/acf-code-snippets/assets/icon-256x256.png?rev=2115588)

# Advanced Custom Fields Code Snippets

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

[下载](https://downloads.wordpress.org/plugin/acf-code-snippets.1.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/acf-code-snippets/)

## 描述

Generate code snippet examples for Advanced Custom Fields

This plugin currently supports:

 * Wysiwyg Editor
 * Text
 * Text Area
 * Number
 * Range
 * Email
 * Url
 * Password
 * Image
 * File
 * oEmbed
 * Gallery
 * Select
 * Radio Button
 * Button Group
 * True/False
 * Group
 * Repeater

## 安装

Getting started is as easy as can be:

 1. Upload the plugin files to the `/wp-content/plugins/acf-code-snippets` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Create or edit a form in Advanced Custom Fields
 4. Upon saving, you will see the generated code at the bottom of the page

## 常见问题

  Do I have to hit save to see the code snippets

Yes. You do not see the code snippets until after you’ve saved the fields

## 评价

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

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-6412/)󠁿

 [nick6352683](https://profiles.wordpress.org/nick6352683/) 2019 年 9 月 20 日

Does the job perfectly, I wish it would also generate the opening and closing php
tags… it’s not a big deal though… Helps shortening dev. times.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/acf-code-snippets/reviews/)

## 贡献者及开发者

「Advanced Custom Fields Code Snippets」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Advanced Custom Fields Code Snippets」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/acf-code-snippets)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial Version. Much more to come.= 1.0.0 =
 * Initial Version. Much more to come.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**7 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 5.2.1 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/acf-code-snippets/)
 * 标签
 * [acf](https://cn.wordpress.org/plugins/tags/acf/)[advanced custom fields](https://cn.wordpress.org/plugins/tags/advanced-custom-fields/)
   [boomcdn](https://cn.wordpress.org/plugins/tags/boomcdn/)[famousui](https://cn.wordpress.org/plugins/tags/famousui/)
 *  [高级视图](https://cn.wordpress.org/plugins/acf-code-snippets/advanced/)

## 评级

 5 星（最高 5 星）。

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

[添加我的评价](https://wordpress.org/support/plugin/acf-code-snippets/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/acf-code-snippets/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/acf-code-snippets/)