Title: Advanced Custom Fields: Button Field
Author: Evan Mullins
Published: <strong>2017 年 7 月 13 日</strong>
Last modified: 2021 年 7 月 14 日

---

搜尋外掛

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

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

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

# Advanced Custom Fields: Button Field

 由 [Evan Mullins](https://profiles.wordpress.org/circlecube/) 開發

[下載](https://downloads.wordpress.org/plugin/acf-button.1.7.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/acf-button/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/acf-button/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/acf-button/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/acf-button/#developers)

 [技術支援](https://wordpress.org/support/plugin/acf-button/)

## 外掛說明

NOTE: **This is an extension for the popular [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/)
plugin. By itself, this plugin does NOTHING.** ENDNOTE

Generates a nice button/link to an external url or an internal post type, similar
to the page_link field but allows you to override the link text and link to any 
post type or a custom url.

What makes this great is reducing multiple ACF rows into just one (see screenshots
for a clear visual walkthrough). The internal link also uses a dropdown which is
populated from all your post types so the button can link to a media file or a Custom
Post Type, or of course to a page or post.

There are many advanced options as well. This will simply add classes to the button
link which line up nicely with Zurb Foundation, but can easily be styled by any 
theme or developer to make these buttons shine. Options for color, size, style as
well allowing the button to open in a new window and add custom classes on the fly.

NOTE: (_I know it was already mentioned, but just to be sure there’s no confusion…_)**
This is an extension for the popular [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/)
plugin. By itself, this plugin does NOTHING.** ENDNOTE

#### Compatibility

This ACF field type is compatible with:
 * ACF 5

#### Roadmap

 * Add option to add bootstrap styles to buttons
 * Add some button styles for users that don’t have any and give an opt out of using
   button css
 * Easily link to media library items for download

## 安裝方式

 1. Copy the `acf-button` folder into your `wp-content/plugins` folder
 2. Activate the plugin via the plugins admin page
 3. Create a new field via ACF and select the Button type
 4. Please refer to the description for more info regarding the field type settings

## 使用者評論

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

### 󠀁[What you need if you use WPBakery](https://wordpress.org/support/topic/what-you-need-if-you-use-wpbakery/)󠁿

 [JEB desarrollo](https://profiles.wordpress.org/jebdesarrollo/) 2021 年 11 月 16
日

What else to say, it delivers everything it promises, you show the ACF link in the
form of a button. Superb.

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/acf-button/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Advanced Custom Fields: Button Field〉的開發相關工作。

參與者

 *   [ Evan Mullins ](https://profiles.wordpress.org/circlecube/)
 *   [ brownbagmarketing ](https://profiles.wordpress.org/brownbagmarketing/)

[將〈Advanced Custom Fields: Button Field〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/acf-button)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/acf-button/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/acf-button/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/acf-button/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/acf-button/)。

## 變更記錄

#### 1.7.3

 * Test with latest WordPress version 5.8.

#### 1.7.2

 * Fix bug when anchor is empty it adds a hashtag to the end of the url.

#### 1.7.1

 * Fix bug that when loading a content link to a button in the admin the value didn’t
   select and display the saved value.

#### 1.7.0

 * Add anchor value.
 * Add rel attribute.
 * Update PHP to WordPress Coding Standards.

#### 1.6.3

 * SVN woes.

#### 1.6.1

 * Include a missing asset files, since they were in the assets dir. Add thumbnail
   and banner assets.

#### 1.6

 * Combine all internal post types into one grouped select list.
 * Fix collapse bug. Hides some fields when button is collapsed (in admin).
 * Fix bug where selecting a different link type alters all buttons on page.
 * Other minor issues.

#### 1.5.1

 * Fix bug – now not messing with the global post or loop on setting up the internal
   links select list.

#### 1.5.0

 * Update to display posts, pages & all custom post types in same select list segmented
   by post type.

#### 1.4.0

 * Further develop advanced settings and allow field group to fine tune the button
   field and default values and fields to display.

#### 1.3.0

 * Add custom settings for link type and custom post type support.

#### 1.2.0

 * Add custom settings for target, color and size.

#### 1.1.0

 * Add support for ACF 5. (and drop for ACF4)

#### 1.0.0

 * Initial Release.

## 中繼資料

 *  版本 **1.7.3**
 *  最後更新 **5 年前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 4.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.8.13**
 *  語言
 * [English (US)](https://wordpress.org/plugins/acf-button/)
 * 標籤:
 * [acf](https://tw.wordpress.org/plugins/tags/acf/)[button](https://tw.wordpress.org/plugins/tags/button/)
   [custom](https://tw.wordpress.org/plugins/tags/custom/)[custom post type](https://tw.wordpress.org/plugins/tags/custom-post-type/)
   [link](https://tw.wordpress.org/plugins/tags/link/)
 *  [進階檢視](https://tw.wordpress.org/plugins/acf-button/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/acf-button/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/acf-button/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/acf-button/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/acf-button/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/acf-button/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/acf-button/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/acf-button/reviews/)

## 參與者

 *   [ Evan Mullins ](https://profiles.wordpress.org/circlecube/)
 *   [ brownbagmarketing ](https://profiles.wordpress.org/brownbagmarketing/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/acf-button/)