Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <div class="loop-meta-wrapper">
  2. <div class="product_meta">
  3. <?php
  4.  
  5. if ( 'default' == $show_cats = auxin_get_post_meta( $product->get_id(), '_product_related_posts_display_categories', 'default' ) ) {
  6. $show_cats = auxin_get_option('product_related_posts_display_categories', '1' );
  7. }
  8.  
  9. $show_cats = is_shop() ? auxin_get_option('product_index_display_category', '1' ) : $show_cats;
  10.  
  11. if (function_exists('get_wp_term_image'))
  12. {
  13. $meta_image = get_wp_term_image($term->term_id);
  14. //It will give category/term image url
  15. }
  16.  
  17. if ( auxin_is_true( $show_cats ) && $cat_count > 0 ) {
  18. echo $meta_image . wc_get_product_category_list( $product->get_id(), ', ', '<em class="auxshp-meta-terms">', '</em>' );
  19. } ?>
  20. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement