이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Advanced Custom Fields: Widget Area Field

설명

Easily add and change Widget Areas on any page template using Advanced Custom Fields and the Advanced Custom Fields: Widget Area Field plugin. This plugin will add a field with a drop-down selection of all registered Widget Areas in your WordPress installation. You can select which widget area you would like to display in your template files when using ACF’s get_field and the_field functions.

As of version 1.0, support for ACF v5 is included.

This Plugin Requires Advanced Custom Fields Version 4 or Higher

Advanced Custom Fields can be found in the WordPress Plugin Repository Here.

Compatibility

This add-on will work with:

  • Advanced Custom Fields version 4 and up

설치

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

Plugin

  1. Install through the WordPress plugin repository
  2. Activate the plugin via the Plugins admin page

Plugin (Manual)

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

Include

  1. Copy the ‘acf-widget_area’ folder into your theme folder (can use sub folders).
  2. Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-widget_area.php file. You should also change my_register_fields function name to something unique.)

    add_action(‘acf/register_fields’, ‘my_register_fields’);

    function my_register_fields() {
    include_once(‘acf-widget_area/acf-widget_area.php’);
    }

FAQ

How does this work?

For this plugin to work, you need to have the Advanced Custom Fields Plugin installed. Once installed, you will be able to select a Widget Area as one of your custom fields.

How do I add new Widget Areas?

The WordPress Codex has an article on Widgetizing Themes which includes “How to Register a Widget Area”. If you add a new Widget Area (also called sidebar) with this method it will be available in Appearance > Widgets and also able to be selected in your new Widget Area Field.

How do I display my Widget Area Field?

The Advanced Custom Fields website has documentation on displaying custom field values.

후기

2016년 9월 3일
I am using the latest ACF Version 5.4.2 and the latest of WP. It works like a charme! Thank you very much, good job!
모든 5 평가 읽기

기여자 & 개발자

“Advanced Custom Fields: Widget Area Field”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Advanced Custom Fields: Widget Area Field”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

0.0.1

  • Initial Release.

1.0.0

  • Add ACF v5 support
  • Fixed an issue where it should have been buffering output
  • Add the ability to return the name of widget area instead of just the HTML output
  • Adding some escaping, better spacing, commenting
  • Better translation support for the few strings included
  • Fix bugs preventing from being used in Repeater Fields
  • Add checks for ACF existing and other checks