Support

Account

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

Solved

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') ) {
    	acf_add_options_page('Optionen');
    }
    

    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?

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

    
    if (function_exists('register_options_page')) {
    	register_options_page('standard');
    	register_options_page('Wordpress Options'); 
    	register_options_page('Settings'); 
    	}
    }
    

    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)

The topic ‘options page doesn't work after update’ is closed to new replies.