How can I display *only* the child category of a product?
I was directed to this post – which solved my problem 100%. Here is the solution I used from that post. // get all product cats for the current post $categories = get_the_terms( get_the_ID(), ‘product_cat’ ); // wrapper to hide any errors from top level categories or products without category if ( $categories && ! … Read more