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.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.