Support

Account

Home Forums Backend Issues (wp-admin) Loading ACF Field Output on Page Editor Reply To: Loading ACF Field Output on Page Editor

  • Hey John,

    That makes sense, but somehow it does load the ACF field in the admin area correctly. This is the full equation:

        // Load admin styling
        function apache_admin_style() {
            wp_enqueue_style('admin-css', get_template_directory_uri() . '/css/admin.css');
            wp_enqueue_script( 'admin-js', get_template_directory_uri() . '/js/admin.js', array( 'jquery' ), null, true );
            include get_template_directory() . '/inc/c-styling.php';
            $post_css = get_field('custom_css', $post->ID); if ( $post_css ) { echo '<style type="text/css">' . $post_css . '</style>'; };
        }
    
        add_action('admin_enqueue_scripts', 'apache_admin_style');