I am having issues retrieving a custom category name. I already have its ID, which is coming to me from a custom field. I don't know if it makes any difference, but I'm using Woocommerce.
I'm trying to do this:
<?php get_term_by( 'id', $my_custom_cat_id, 'product-cat') ?>
But I get an empty value back, even though I know the category ID is correct (I am using it as query args already)
Many thanks
get_term_by