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

Advanced Custom Fields – Menu Field add-on

外掛說明

This is an add-on for the Advanced Custom Fields WordPress plugin and will not provide any functionality to WordPress unless Advanced Custom Fields is installed and activated.

This add-on creates an Advanced Custom Fields field type that, when associated with a WordPress Menu, renders a single or optionally, a multi select element, containing the items in the menu.

The user selection is returned as a plain text string, or, if the field is configured as a multi select, as an array.

安裝方式

  1. Upload the acf-menu-field directory to the /wp-content/plugins/ directory found in your web root.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Create a new custom field with the type ‘WordPress Menu’.

There is no need to use ACF’s register_field(); method for this field. This plugin will, if ACF is installed and actived, register the field automatically.

You can also include this plugin directly in your theme by using require('path_to_menu_field.php');.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Advanced Custom Fields – Menu Field add-on〉的開發相關工作。

參與者

變更記錄

1.0.0
Initial release.