About Web Branding Blog Contact
g a l w g i t

Activating the Options Page in Advanced Custom Fields.

Gareth Hardy Gareth Hardy - 6th October 2022

If you’ve ever worked with a custom built WordPress theme before, you’ll know it’s always nice to have a separate area where selections are made across the whole website and not just restricted to a single post or page. The Options Page by Advanced Custom Fields (ACF) is perfect for this. However, if you build your own themes, you may find that it isn’t accessible as a selectable field option.

To make this appear you need to add the following code to your functions.php in your theme:

if( function_exists('acf_add_options_page') ) {

Once this code has been added you’ll then see the ‘Options’ page added in the WordPress admin panel sidebar, and from there you can start adding fields to your brand new Options Page.

That’s all there is to it!

Gareth Hardy
Interested in working with me?
Let's start your project