Filter category in WooCommerce shop page to display related sub-category

According to your description I’m assuming your each product has a category named Designers and designer-name subcategory under Designers category. In that case the following CODE will work for you (read the comments within the CODE for explanation): function wc_shop_product_sub_category() { // get the category object for “designers” category $designers_category = get_term_by( ‘name’, ‘designers’, ‘product_cat’ … Read more

Outputting an array of term meta values in a custom WooCommerce tab?

For your author content display, instead of print_r($all_term_meta); try a foreach: foreach($all_term_meta as $meta) { return $meta[0]; } It’s possible you may need to use “echo” instead of “return” but try “return” first. To control whether or not there is an author tab, update your woo_new_product_tab function with the same condition: function woo_new_product_tab( $tabs ) … Read more