Title: Conditional Tags Issue
Last modified: August 21, 2016

---

# Conditional Tags Issue

 *  Resolved [nathancope](https://wordpress.org/support/users/nathancope/)
 * (@nathancope)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/conditional-tags-issue/)
 * Hey, I am trying to display different content for different products in each 
   tags using conditional tags in WooCommerce.
 * The issue is that it is displaying nothing at all!
 *  <?php
    if ( is_product_tag( ‘tag1’ ) ) { echo get_touchcarousel(4); } elseif(
   is_product_tag( ‘tag2’ ) ) { echo get_touchcarousel(3); } elseif ( is_product_tag(‘
   tag3’ ) ) { echo get_touchcarousel(6); } elseif ( is_product_tag( ‘tag4’ ) ) {
   echo get_touchcarousel(5); } ?>

Viewing 1 replies (of 1 total)

 *  Thread Starter [nathancope](https://wordpress.org/support/users/nathancope/)
 * (@nathancope)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/conditional-tags-issue/#post-4276758)
 * For anyone having same issue, I have resolved by changing the conditional tag
   to a post ID instead:
 * if( $product->id == 116 && is_product() )
    echo( get_touchcarousel(3) );

Viewing 1 replies (of 1 total)

The topic ‘Conditional Tags Issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [nathancope](https://wordpress.org/support/users/nathancope/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/conditional-tags-issue/#post-4276758)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
