Add custom taxonomy under the category title

I FINALLY figured it out. Phew. Answer is as follows: add_action( ‘woocommerce_after_subcategory’, ‘my_add_cat_description’, 12); function my_add_cat_description ($category) { $cat_id=$category->term_id; $prod_term=get_term($cat_id,’product_cat’); $term_meta = get_option( “taxonomy_$cat_id” ); echo ‘<div class=”cat_desc”>’.$term_meta[‘custom_term_meta’].'</div>’; } I hope this saves someone some time.

WP_Query that filters based on custom relationship field

well, I guess the problem is I’m trying to compare an array with a value. I made a workaround that gets me to where I need to go: <?php $client = get_field(‘client_name’); $work_args = array( ‘post_type’ => ‘work’ ); $work_query = new WP_Query($work_args); if ($work_query->have_posts()): while ($work_query->have_posts()): $work_query->the_post(); ?> $client2 = get_field(‘client_name’); if ($client[0] == … 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