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.
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.
Screenshots & previews.
- 01Upload the custom-option-page-for-acf folder to the /wp-content/plugins/ directory.
- 02Activate the plugin through the ‘Plugins’ menu in WordPress.
- 03Ensure 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');
Frequently asked questions.
Does this plugin require ACF?
Yes, this plugin requires the Advanced Custom Fields (ACF) plugin to be installed and activated.