• Resolved Alexandra

    (@menthool)


    Hello,

    i am using version 4.4.12 of ACF. With this version i display a custom field on the product site under the article listing with this code in the archive.php and it worked fine.

    /**
     * Hook: woocommerce_after_main_content.
     *
     * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
     */
    do_action( 'woocommerce_after_main_content' );
    
    $queried_object = get_queried_object(); 
    $taxonomy = $queried_object->taxonomy;
    $term_id = $queried_object->term_id;  
    echo "<div class='entry-content'>";
    the_field('myacffield', $taxonomy . '_' . $term_id);
    echo "</div>";
    

    I now updated to the latest version 5.7.7 and it stopped working. I did some “rollback-tests” to the versions. All versions AFTER 4.4.12 will not work.

    Is this a problem/bug with ACF?

    Have a nice week!

    Alexa

    Solving the problem by updating the database

    • This topic was modified 6 years, 4 months ago by Alexandra.
    • This topic was modified 6 years, 4 months ago by Alexandra.
  • The topic ‘Show the_Field under archive-product.php (Woocomerce) stops working after 4.4.12’ is closed to new replies.