When you publish, edit or update an ACF Field Group, the code required to implement each field is displayed for you in the Theme Code section at the bottom of the page.
发布,编辑或更新ACF字段组时,在页面底部的“主题代码”部分中会为您显示实现每个字段所需的代码。 p>
The code is based on the ACF documentation and it’s automatically updated to match the fields you have created.
该代码基于ACF文档,并且会自动更新以匹配您创建的字段。 p>
Use the clipboard icon to easily copy these code blocks and paste them into your theme to get you started and save loads of time!
使用剪贴板图标轻松复制这些代码块并将其粘贴到主题中,以帮助您入门并节省大量时间! p>
Upgrade to ACF Theme Code Pro
升级到ACF主题代码专业版 strong>
ACF Theme Code Pro generates code for all ACF Pro field types including the Clone, Repeater, Gallery and Flexible Content field.
ACF Theme Code Pro为所有ACF Pro字段类型(包括“克隆”,“ Repeater”,“ Gallery”和“ Flexible Content”字段)生成代码。
Our Pro version also generates code for a range of 3rd party fields and we generate code for location rules including Options Pages!
我们的专业版还为一系列第三方字段生成代码,并且为位置规则(包括选项页)生成代码!
Find out more about ACF Theme Code Pro
了解有关ACF主题代码专业版的更多信息 p>
blockquote>
src='https://www.youtube.com/embed/g9APGNJMy7k?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><
src ='https://www.youtube.com/embed/g9APGNJMy7k?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> <
/iframe>
/ iframe> span>
Features include:
功能包括: h4>
- Easily copy the code into your theme
- 轻松地将代码复制到您的主题中 li>
- Great for offline documentation
- 非常适合离线文档 li>
- Based on the official ACF documentation
- 基于ACF官方文档 li>
- Field names and variables are automatically updated
- 字段名称和变量会自动更新 li>
ul>
Support for the following fields:
对以下字段的支持: h4>
- Text
- 文字 li>
- Text Area
- 文本区域 li>
- Number
- 号码 li>
- Email
- 电子邮件 li>
- Password
- 密码 li>
- WYSIWYG
- 所见即所得 li>
- File (Object, URL and ID return values)
- 文件(对象,URL和ID返回值) li>
- Image (Object, URL and ID return values)
- 图像(对象,URL和ID返回值) li>
- Select (single and multiple values)
- 选择(单个和多个值) li>
- Checkbox
- 复选框 li>
- Radio
- 收音机 li>
- True / False
- 对/错 li>
- User
- 用户 li>
- Google Map
- Google地图 li>
- Date Picker
- 日期选择器 li>
- Colour Picker
- 颜色选择器 li>
- Page Link (single and multiple values)
- 页面链接(单个和多个值) li>
- Post Object (single and multiple values)
- 发布对象(单个和多个值) li>
- Relationship (Object and ID return values)
- 关系(对象和ID返回值) li>
- Taxonomy (Checkbox, Multi Select, Radio Buttons and Select)
- 分类法(复选框,多项选择,单选按钮和选择) li>
- Button (found in ACF free version 5)
- 按钮(在ACF免费版本5中找到) li>
- Link (found in ACF free version 5)
- 链接(可在ACF免费版本5中找到) li>
- Range (found in ACF free version 5)
- 范围(可在ACF免费版本5中找到) li>
- Group (found in ACF free version 5)
- 组(在ACF免费版本5中找到) li>
ul>
Upgrade to ACF Theme Code Pro
升级到ACF主题代码专业版 strong>
ACF Theme Code Pro generates code for all ACF Pro field types including the Clone, Repeater, Gallery and Flexible Content field.
ACF Theme Code Pro为所有ACF Pro字段类型(包括“克隆”,“ Repeater”,“ Gallery”和“ Flexible Content”字段)生成代码。
Our Pro version also generates code for a range of 3rd party fields and we generate code for location rules including Options Pages!
我们的专业版还为一系列第三方字段生成代码,并且为位置规则(包括选项页)生成代码!
Find out more about ACF Theme Code Pro
了解有关ACF主题代码专业版的更多信息 p>
blockquote>
Requires
需要 h4>
- ACF version 5.8.3 or higher
- ACF版本5.8.3或更高版本 li>
- ACF Pro version 5.8.3 or higher
- ACF Pro 5.8.3或更高版本 li>
ul>
Thank you
谢谢 h4>
Thanks to all of our beta testers including Elliot Condon, Phil Smart, Richard Johnston & James Bundey!
感谢我们所有的Beta测试人员,包括Elliot Condon,Phil Smart,Richard Johnston和James Bundey! p>