# Wordpress conditiona tags

**URL:** <https://forum.kirupa.com/t/wordpress-conditiona-tags/314850>\
**Category:** Uncategorized\
**Created:** [October 11, 2010, 5:12am UTC](https://forum.kirupa.com/t/wordpress-conditiona-tags/314850 "2010-10-11T05:12:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daimz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daimz/32/2383_2.png) [@Daimz](https://forum.kirupa.com/u/Daimz)\
**Post date:** [October 11, 2010, 5:12am UTC](https://forum.kirupa.com/t/wordpress-conditiona-tags/314850/1 "2010-10-11T05:12:46Z")

</div>

I have created some custom post taxonomies and I have been able to call them but what I have been struggling with is how do I make them conditional so when nothing is entered it removes the taxonomy.

Here is what i currently have:

```auto
<div id="lefty" class="spec2_lable">Products</div>
<div id="righty" class="spec2_result"><?php

$terms_as_text = get_the_term_list( $post->ID, 'pro', '', ', ', '' ) ;
echo strip_tags($terms_as_text);

?></div>

```

I would like to make this only show is something is entered into the taxonomy.
