Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="loop-meta-wrapper">
- <div class="product_meta">
- <?php
- if ( 'default' == $show_cats = auxin_get_post_meta( $product->get_id(), '_product_related_posts_display_categories', 'default' ) ) {
- $show_cats = auxin_get_option('product_related_posts_display_categories', '1' );
- }
- $show_cats = is_shop() ? auxin_get_option('product_index_display_category', '1' ) : $show_cats;
- if (function_exists('get_wp_term_image'))
- {
- $meta_image = get_wp_term_image($term->term_id);
- //It will give category/term image url
- }
- if ( auxin_is_true( $show_cats ) && $cat_count > 0 ) {
- echo $meta_image . wc_get_product_category_list( $product->get_id(), ', ', '<em class="auxshp-meta-terms">', '</em>' );
- } ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement