Home › Forums › Add-ons › Options Page › Totally lost, can't get options page to display › Reply To: Totally lost, can't get options page to display
It’s bizarre, if I use the options page as an include, it shows in the ACF Addons page as being there, but not option menu appears – I include it along with my other fields.
define( 'ACF' , true );
include_once( get_template_directory() . '/advanced-custom-fields/acf.php' );
add_action('acf/register_fields', 'myown_custom_fields');
function myown_custom_fields() {
include_once( get_template_directory() . '/advanced-custom-fields/acf-repeater/repeater.php');
include_once( get_template_directory() . '/advanced-custom-fields/acf-flexible-content/flexible-content.php');
include_once( get_template_directory() . '/advanced-custom-fields/acf-options-page/acf-options-page.php');
}
Installing it as a separate plugin, however, works fine. I don’t mind doing that, but any idea how I’d do it by bundling into my functions?
Cheers!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.