ACF Options Page

The options page feature provides a set of functions to add extra admin pages to edit ACF fields! Here's the code for enabling the ACF Options Page in your WordPress theme.

Advanced Custom Fields Options feature provides a set of functions to add extra admin pages to edit ACF fields! Here’s the code for enabling the ACF Options Page in your WordPress theme.

Add the following code snippet to your theme functions.php file

Basic

if( function_exists('acf_add_options_page') ) {
	acf_add_options_page();
}

More Detailed

/* INCLUDE ADVANCED CUSTOM FIELDS */
if( function_exists('acf_add_options_page') ) {
    acf_add_options_page(array(
        'page_title'    => 'enter name of site options page',
        'menu_title'    => 'enter the name as it should appear in the wp admin area menu',
        'menu_slug'     => 'my-site-options',
        'capability'    => 'edit_posts',
        'redirect'      => false
    ));   
}

Hire WordPress Experts at Codeable.

The only WordPress exclusive freelancer platform that connects thousands of customers with the top WordPress freelance experts to work on projects of any size. 

Free estimate • No obligation to hire • 100% risk-free