Title: Need some help about get_category function
Last modified: February 13, 2019

---

# Need some help about get_category function

 *  [umairriaz2008](https://wordpress.org/support/users/umairriaz2008/)
 * (@umairriaz2008)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/need-some-help-about-get_category-function/)
 * I wrote “Size Chart” in Single-product.php file and link with Size chart plugin
 * I want if someone comes to my website and select product i.e accessories then“
   Size-Chart” link hide and if customer selects i.e Shirt or Shoes or Cloth, “Size
   Chart” gets visible
 * Can anyone help me meanwhile ?
 * Thank you
    -  This topic was modified 7 years, 3 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: moved from installing to fixing
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fneed-some-help-about-get_category-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [wpgear](https://wordpress.org/support/users/wpgear/)
 * (@wpgear)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/need-some-help-about-get_category-function/#post-11202600)
 * show your file Single-product.php
 *  Thread Starter [umairriaz2008](https://wordpress.org/support/users/umairriaz2008/)
 * (@umairriaz2008)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/need-some-help-about-get_category-function/#post-11204280)
 * I want to write something here.Hope you have understood my problem
    //******my
   custom code**//
 * add_filter( ‘woocommerce_attribute_label’, ‘custom_attribute_label’, 10, 3 );
   
   function custom_attribute_label( $label, $name, $product ) { $taxonomy = ‘pa_’.
   $name;
 *  if( $taxonomy == ‘pa_euro-size’ OR ‘pa_top-size’ )
    $label .= ‘<div class=”custom-
   label”>’ . __(‘[SIZE CHART <i class=”fa fa-chevron-right”></i>](https://wordpress.org/support/topic/need-some-help-about-get_category-function/?output_format=md#modal)‘,‘
   woocommerce’) . ‘</div>’;
 *  return $label;
    }

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Need some help about get_category function’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [umairriaz2008](https://wordpress.org/support/users/umairriaz2008/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/need-some-help-about-get_category-function/#post-11204280)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
