Custom Option Page for ACF

外掛說明

The ACF Custom Option Page plugin allows you to create custom option pages using Advanced Custom Fields (ACF). This plugin enhances your WordPress admin interface by providing a seamless way to manage options with ACF’s powerful field management system.

螢幕擷圖

安裝方式

  1. Upload the custom-option-page-for-acf folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Ensure the Advanced Custom Fields (ACF) plugin is installed and activated, as this plugin is dependent on it.

Usage Example:

This plugin saves values in the WordPress options table using the format copacf_options_FIELD_NAME.

To retrieve an option value on the frontend, use WordPress’s native get_option() function:

get_option('copacf_options_FIELD_NAME')

Replace FIELD_NAME with the actual name of your ACF field.

You can also use the helper function:

copacf_get_option('FIELD_NAME')

Link field example:

$link = get_option('copacf_options_my_link');
// Returns: array( 'title' => '...', 'url' => '...', 'target' => '...' )

Image field example:

Image values respect your ACF field “Return Format” setting (Image Array, Image URL, or Image ID).

$image = get_option('copacf_options_my_image');

常見問題集

Does this plugin require ACF?

Yes, this plugin requires the Advanced Custom Fields (ACF) plugin to be installed and activated.

Is this plugin compatible with the latest WordPress version?

Yes, tested up to WordPress 7.0. Always check the ‘Tested up to’ value for the latest compatibility.

使用者評論

2025 年 10 月 13 日
The Custom Option Page for ACF works flawlessly. I’ve used it on multiple client projects and never had an issue. The support and documentation are also great.
2025 年 5 月 4 日
This plugin is awesome! It’s very user-friendly and makes it super easy to create and manage custom option pages using ACF. The best part is that it works without ACF Pro. If you want to save time and avoid writing extra code, this plugin is perfect. Highly recommended!
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Custom Option Page for ACF〉的開發相關工作。

參與者

將〈Custom Option Page for ACF〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.3

  • Fixed Link field saving empty values.
  • Fixed Image field to respect ACF return format (Array, URL, or ID).
  • Added copacf_get_option() helper function.

1.2

  • fixes some minor changes

1.1

  • fixes some minor changes

1.0

  • Initial Release