Support » Plugin: Taxonomy Images » Display taxonomy images in Woocommerce

  • I am running Woocommerce and Elementor using GeneratePress theme.

    I have added custom product taxonomies using ACF and assigned images to those taxonomies using the Taxonomy Images plugin.

    I am trying to display these product tag images on single products pages, using a template made in Elementor.

    The code I am using is:

    add_action(“woocommerce_after_add_to_cart_button”,”product_taxonomy_image”);
    function product_taxonomy_image () {
    print apply_filters( ‘taxonomy-images-list-the-terms’, ”, array(
    ‘before’ => ‘<div class=”product-badges”>’,
    ‘after’ => ‘</div>’,
    ‘before_image’ => ‘<span>’,
    ‘after_image’ => ‘</span>’,
    ‘image_size’ => ‘detail’,
    ‘taxonomy’ => ‘product_tag’,
    ) );
    }

    Currently, I can’t get any product tag images to display.

    I would really appreciate some help.

    Thanks

  • The topic ‘Display taxonomy images in Woocommerce’ is closed to new replies.