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.

Format Brand value in Category view [closed]

If i’m understood properly, you just have to remove the anchor from your code. Simply use: echo $brand->name; Instead of: echo ‘<a href=”‘.get_term_link($brand->term_id).'”>’.$brand->name.'</a>’; This will just echo the name of your brand. If you want to style it, you can add a class to it as the following: echo ‘<span class=”my-brand”>’.$brand->name.'</span>’; And then use the … Read more

show posts names and links in the sidebar list as categories child

Well the simplest way I can think of is something like this… <ul class=”categories”> <?php $categories = get_categories(); //can add parameters here to swtich the order, etc; if(!empty(categories)): foreach($categories as $i => $category): ?> <li class=”category”> <span><?php echo $category->name ?></span> <?php query_posts(‘posts_per_page=-1&cat=” . $category->term_id); if ( have_posts() ) : ?> <ul class=”posts”> <?php while ( … Read more