Home Forums ACF PRO options page doesn't work after update


options page doesn't work after update

  • after update I can’t see the options page and the functionality doesn’t work after update (v4 to v5) correctly.

    only when I add the custom function

    if( function_exists('acf_add_options_page') ) {

    Would it not make more sense that after update the option page is added automatically?

    Ok, now when I add the custom function to the functions.php I can’t see any fields anymore (see attachment). Is there a solution for this problem?

    for a better understanding:
    before I update acf, I register subpages for the optionspage

    if (function_exists('register_options_page')) {
    	register_options_page('Wordpress Options'); 

    how can I register and activate these pages with acf pro?

    Thanks Davelee

  • For those who have the same problem:
    This code works for both versions:

        if (function_exists('acf_add_options_sub_page')) {
    	if( function_exists('acf_add_options_page') ) {
     		acf_add_options_page(); // necessary for v.5 :-/
    	acf_add_options_sub_page( 'standard' );
    	acf_add_options_sub_page( 'Wordpress Options' );
    	acf_add_options_sub_page( 'Settings' );
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.