Support

Account

Home Forums ACF PRO Taxonomy field not loading values in acf_form() Reply To: Taxonomy field not loading values in acf_form()

  • Hi John, thanks for your reply.

    1) acf_form_head() is the first function on my template file, as <?php acf_form_head(); get_header(); the_post(); ?>

    2) No JS errors were returned in the console when trying to load taxonomies. Is there a need/method to turn on any verbose logging?

    3) Turning on WP_DEBUG and WP_DEBUG_LOG didn’t return any errors on the page or in my logs.

    I tried creating a fresh WP install at http://acftax.wpengine.com/?p=1 with the default 2017 theme. Everything is vanilla except for code inside the loop. single.php‘s code in its entirety is attached.

    
    <?php acf_form_head(); get_header(); ?>
    
    <div class="wrap">
    	<div id="primary" class="content-area">
    		<main id="main" class="site-main" role="main">
    
    			<?php
    			/* Start the Loop */
    			while ( have_posts() ) : the_post();
    
                    echo '// START <code>acf_form()</code>';
                    acf_form(array(
                        'post_id' => $post->ID
                    ));
                    echo '// END <code>acf_form()</code>';
    
    			endwhile; // End of the loop.
    			?>
    
    		</main><!-- #main -->
    	</div><!-- #primary -->
    	<?php get_sidebar(); ?>
    </div><!-- .wrap -->
    
    <?php get_footer();
    

    And I still get the same error, leading me to believe this is an issue within ACF or Select2.

    Any additional assistance on this would be greatly appreciated. Thanks!