Support

Account

Home Forums Bug Reports ACF Is Not Defined – Admin Dashboard Reply To: ACF Is Not Defined – Admin Dashboard

  • This happens when I’m using the Post Object dynamic select. The solution ended up being found in a topic from 16′

    https://support.advancedcustomfields.com/forums/topic/using-acf_form-in-admin/#post-38999

    add_action('admin_enqueue_scripts', function() {
    	
    	global $pagenow;
    	
    	if ( 'index.php' != $pagenow ) {
    		return;
    	}
    	
    	wp_enqueue_script('acf-input');
    	
    } );

    Maybe a topic on this would be helpful to others in the future trying to do a similar feature.