I’m wanting to display a feature image for each Woocommerce category. I’ve got the image upload showing up for the category, and the URL of the image being returned as a background on the code, but the image itself does not show.
Code is as follows:
// get the current taxonomy term
$term = get_queried_object();
$image = get_field(‘category-feature-image’, $term);
background-image: url(<?php echo $image[‘url’]; ?>);