Support

Account

Home Forums Backend Issues (wp-admin) ACF not showing on Admin Menu in custom theme

Unread

ACF not showing on Admin Menu in custom theme

  • I have purchased a custom theme that uses ACF Pro. I can see ACF Pro in the assets directory, and I can see the custom fields in the pages.

    I want to alter some of the fields.

    But the ACF admin panel appears nowhere on the admin dashboard.

    How can I edit the fields in the theme / access the admin panel?

    In admin.php , i have these which seem relevent:

    
    
    	function __construct() {
    	
    		// actions
    		add_action('admin_menu', 			array($this, 'admin_menu'));
    		add_action('admin_enqueue_scripts',	array($this, 'admin_enqueue_scripts'), 0);
    		add_action('admin_notices', 		array($this, 'admin_notices'));
    		
    	}
    	
    	
    	/*
    	*  admin_menu
    	*
    	*  This function will add the ACF menu item to the WP admin
    	*
    	*  @type	action (admin_menu)
    	*  @date	28/09/13
    	*  @since	5.0.0
    	*
    	*  @param	n/a
    	*  @return	n/a
    	*/
    	
    	function admin_menu() {
    		
    		// bail early if no show_admin
    		if( !acf_get_setting('show_admin') ) {
    			
    			return;
    			
    		}

    and in the acf.php this:

    
    // options
    			'show_admin'		=> true,
    
    ...
    
    		// admin
    		if( is_admin() ) {
    			
    			acf_include('admin/admin.php');
    			acf_include('admin/field-group.php');
    			acf_include('admin/field-groups.php');
    			acf_include('admin/update.php');
    			acf_include('admin/update-network.php');
    			acf_include('admin/settings-tools.php');
    			//acf_include('admin/settings-addons.php');
    			acf_include('admin/settings-info.php');
    		}
    		
    		
    		// pro
    		acf_include('pro/acf-pro.php');
Viewing 1 post (of 1 total)

The topic ‘ACF not showing on Admin Menu in custom theme’ is closed to new replies.