项目作者: cyberwani

项目描述 :
Image Select addon for Advanced Custom Fields.
高级语言: PHP
项目地址: git://github.com/cyberwani/ACF-Image-Select.git
创建时间: 2014-02-04T07:11:32Z
项目社区:https://github.com/cyberwani/ACF-Image-Select

开源协议:GNU General Public License v2.0

下载


ACF - Image Select Addon

Adds a new choice field ‘Image Select’ field type to ACF field list to add image-select field.


Overview

The ‘Image Select’ field allows you to add images as radio button.

Compatibility

This add-on will work with:

  • version 5 and up
  • version 4 and up
  • version 3 and bellow

Installation

This add-on can be treated as both a WP plugin and a theme include.

Install as Plugin

  1. Copy the ‘acf-image-select’ folder into your plugins folder
  2. Activate the plugin via the Plugins admin page

Include within theme

  1. Copy the ‘acf-image-select’ folder into your theme folder (can use sub folders). You can place the folder anywhere inside the ‘wp-content’ directory
  2. Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-image-select.php file)
  1. add_action('acf/register_fields', 'register_fields');
  2. function my_register_fields()
  3. {
  4. include_once('acf-image-select/acf-image-select.php');
  5. }