I'm using display categories only for shop page setup in woocommerce. I added custom field (textfield) for product categories in Advanced custom fields.
I would like to display this text under category title on shop page (not on category page).
in content-product_cat.php after
do_action( 'woocommerce_shop_loop_subcategory_title', $category );
I added:
$term_id = get_queried_object()->term_id;
$post_id = 'product_cat_'.$term_id;
$custom_field = get_field('krotki_opis_kategorii', $post_id); // My Advanced Custom Field Variable
echo $custom_field;
But it's not working.