這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Easy ACF Connect For Themer

描述

Description

Easily connect ACF fields in Beaver Themer. No need to remember the fieldnames, easily select from the dropdown. It returns all fieldnames, across all fieldgroups.

Easy ACF Connect for Themer also supports ACF Fields on the current post, another post, user_id, tax_termid or even from your ACF Options pages.

Select the Easy ACF Connector… Then simply select the fieldname.

Using the Conditional Logic filter

Easy ACF Connect for Themer also supports adding conditional rules using ACF Fields on the current post or from your ACF Options pages. For that select either “Easy ACF Field” or “Easy ACF Option Field”.

Supported fieldtypes:

  • color-picker
  • date-picker
  • date-time-picker
  • email
  • file
  • flexible content
  • gallery
  • group
  • image (array, url or image ID)
  • link
  • message
  • number
  • page link
  • password
  • post object
  • checkbox
  • radio
  • range
  • relationship
  • repeater
  • taxonomy
  • select
  • text
  • textarea
  • time_picker
  • true_false
  • url
  • user
  • wysiwyg

Please note that field support means that it will return the ACF-value as a variable (object, array, string or number). It’s up to the module to handle the returned variable.

Adding support for more fieldtypes in list

If you use any third party or custom fieldtypes for ACF ( which can be found on https://awesomeacf.com ) you can add those using a filter in your function.php:

add_filter( 'easy_acf_accepted_acf_field_types' , 'my_custom_add_acf_field_types' );

/**
 * Callback that adds one or more fieldtypes to the the easy_acf_accepted_field_types filter
 * @param  {array} $fieldtypes array with name->value, label->value pairs
 * @return {array}
 * @since 1.0.0
 */
function my_custom_add_acf_fieldtypes( $fieldtypes ) {
    $new_fieldtypes =  array(
            array( 'name' => 'custom_fieldtype'         , 'label' => 'Custom Field Type' ),
        );

    $fieldtypes = array_merge( $fieldtypes , $new_fieldtypes );
    return $fieldtypes;
}

Conditional Rules for 3rd party fieldtypes

There is currently no support or way to extend for 3rd party fieldtypes using the conditional rules. This means that you won’t be able to pick fieldtypes based on the type. Use the conditional rules provided by Beaver Themer instead, but you will need to enter the fieldname manually.

version history:

v1.1.5

bugfix: added permission_callback to rest request

v1.1.4

added checkbox fieldtype to Beaver Builder conditional rules, it was missing.

v1.1.3

added all remaining fieldtypes (flexible content, group, repeater, page link, post object, relationship, taxonomy, user)

v1.1.2

added Conditional Logic settings

v1.1.1

added image-size on image fields, tweaked the code, changed way to test for acf 4/5, fixed save_format/return_format for acf 4/5, added textdomain and .pot file

v1.0.0

image and gallery field support

螢幕截圖

評價

2019年3月1日
Themer shortcode's ACF support is limited to some fields, this plugin largely extends the supports to many ACF fields. For instance, it allows to output an ACF Color Picker field with a Themer shortcode, which Themer can't do out of the box. Well done!
2019年1月19日
Thank you for this plugin! It's quite a time saver and is super useful to me as I am the king of typos! Seems like a no-brainer that this would be in the core of themer.
2019年1月19日
Thanks Didou for this great add-on. But in my opinion this should be in the core of Themer. I asked the BB guys a couple of times, until now they did not. So thanks, this one will for sure help many of us.
閱讀全部5個評價

貢獻者及開發者

“Easy ACF Connect For Themer” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Easy ACF Connect For Themer 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄