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!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.