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

ACF Field Display

描述

This plugin was build of the fantastic Advanced Custom Fields plugin created by Elliot Condon, and was made so that referencing custom fields is easier. Here, you can see a full list of all your currently used field which is sortable by clicking on the headers, and should you need to learn more about the field or edit it, clicking the label name will take you to the field group’s page so you can do what you need to. The table sorting functionality incorporates the Tablesorter jQuery plugin by Christian Bach. Docs can be found at http://tablesorter.com/docs/.

*Note: This doesn’t display fields in your theme. It just gives you a complete list of your fields that you can reference easily and allows you to edit the field groups easily.

I tried to mark up the code for this plugin with lots of comments in hope that people can understand how it is working and expand on this functionality. Oh yeah, and all the function and variable names are based off Buster Bluth from Arrested Development.

螢幕截圖

  • This is what the button will look like once the ACF Fields Display plugin is activated.
  • Here is an example of the table once the ACF Field Display is being used.

安裝

  1. Upload acf-field-display.php to the /wp-content/plugins/ directory, or install it via the WP Plugin repository
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. A new button will show up in the menu of the dashboard called ACF Field Display. If you don’t have the ACF plugin activated, the button won’t show up.
  4. Clicking on the button will take you to a page that displays all your currently used fields in a sortable table. Opening up this page in a new tab and referencing this page while constructing your theme will save you a lot of referencing time.

常見問題

Why isn’t my button showing up?

Make sure sure you have ACF installed and activated.

I can see the button, but why can’t I see all my fields?

If this is the case with you, make sure you have custom fields created.

評價

閱讀全部1個評價

貢獻者及開發者

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

貢獻者

將 ACF Field Display 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0

  • Currently, this is the first version of this plugin and no changes have been made.

1.1

Updated paths to fix errors