Title: CMB2 Field Type: Font Awesome
Author: Serkan Algur
Published: <strong>2018 年 2 月 6 日</strong>
Last modified: 2019 年 6 月 30 日

---

搜尋外掛

![](https://ps.w.org/cmb2-field-type-font-awesome/assets/banner-772x250.png?rev=
1816166)

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

![](https://ps.w.org/cmb2-field-type-font-awesome/assets/icon-256x256.png?rev=1816166)

# CMB2 Field Type: Font Awesome

 由 [Serkan Algur](https://profiles.wordpress.org/kaisercrazy/) 開發

[下載](https://downloads.wordpress.org/plugin/cmb2-field-type-font-awesome.zip)

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

 [技術支援](https://wordpress.org/support/plugin/cmb2-field-type-font-awesome/)

## 外掛說明

Font Awesome icon selector for powerful custom metabox generator [CMB2](https://github.com/WebDevStudios/CMB2)

You can use as field type in CMB2 function file. Add a new field, set type to `faiconselect`
and add font awesome icons to options (look Usage for examples). Plugin uses [jQuery Font Picker](https://codeb.it/fonticonpicker/)
for creating a icon selector.

### Sample Usage

Detailed instructions on [Github ](https://github.com/serkanalgur/cmb2-field-faiconselect)

    ```
    $cmb->add_field( array(
        'name' => __( 'Select Font Awesome Icon', 'cmb' ),
        'id'   => $prefix . 'iconselect',
        'desc' => 'Select Font Awesome icon',
        'type' => 'faiconselect',
        'options' => array(
        'fa fa-facebook' => 'fa fa-facebook',
        'fa fa-500px'    => 'fa fa-500px',
        'fa fa-twitter'  => 'fa fa-twitter'
        )
    ) );
    ```

### Sample Usage With Font Awesome 5

    ```
    $cmb->add_field( array(
        'name' => __( 'Select Font Awesome Icon', 'cmb' ),
        'id'   => $prefix . 'iconselect',
        'desc' => 'Select Font Awesome icon',
        'type' => 'faiconselect',
        'options' => array(
            'fab fa-facebook' => 'fa fa-facebook',
            'fab fa-500px'       => 'fa fa-500px',
            'fab fa-twitter'     => 'fa fa-twitter',
            'fas fa-address-book' => 'fas fa-address-book'
        ),
        'attributes' => array(
            'faver' => 5
        )
    ) );
    ```

## 螢幕擷圖

[⌊Selector⌉⌊Selector⌉[

Selector

## 安裝方式

 1. Upload `cmb2-field-type-font-awesome` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 使用者評論

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

### 󠀁[Great addon for CMB2](https://wordpress.org/support/topic/great-addon-for-cmb2/)󠁿

 [shansta](https://profiles.wordpress.org/shansta/) 2019 年 3 月 11 日

Works very well. Thanks for creating the plugin.

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/cmb2-field-type-font-awesome/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈CMB2 Field Type: Font Awesome〉的開發相關工作。

參與者

 *   [ Serkan Algur ](https://profiles.wordpress.org/kaisercrazy/)

[將〈CMB2 Field Type: Font Awesome〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/cmb2-field-type-font-awesome)

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

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

## 變更記錄

#### Version 1.4

 * Composer Support Added

#### Version 1.3-beta

 * Test for Gutenberg
 * Font Awesome 5 support added
 * Code Fixes

#### Version 1.2

 * Version corrections and tests
 * fontawesome & mainjs definition fix

#### Version 1.1

 * Group Field Problem Solved
 * Icon Selector js updated to latest version

#### Version 1.0

 * Released

## 中繼資料

 *  版本 **1.4**
 *  最後更新 **7 年前**
 *  啟用安裝數 **300+**
 *  WordPress 版本需求 ** 3.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.2.30**
 *  語言
 * [English (US)](https://wordpress.org/plugins/cmb2-field-type-font-awesome/)
 * 標籤:
 * [cmb2](https://tw.wordpress.org/plugins/tags/cmb2/)[Font Awesome](https://tw.wordpress.org/plugins/tags/font-awesome/)
   [plugins](https://tw.wordpress.org/plugins/tags/plugins/)
 *  [進階檢視](https://tw.wordpress.org/plugins/cmb2-field-type-font-awesome/advanced/)

## 評分

 5 星，滿分為 5 星

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

[撰寫評分](https://wordpress.org/support/plugin/cmb2-field-type-font-awesome/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/cmb2-field-type-font-awesome/reviews/)

## 參與者

 *   [ Serkan Algur ](https://profiles.wordpress.org/kaisercrazy/)

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/cmb2-field-type-font-awesome/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://paypal.me/serkanalgur)