Title: Taxonomy Creator
Last modified: August 24, 2018

---

# Taxonomy Creator

 *  Resolved [rico76](https://wordpress.org/support/users/rico76/)
 * (@rico76)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-creator/)
 * Hello,
 * Thanks for this great plugin !
 * I want to put a Taxonomy Creator in content.php.
 * I have this and it’s working great :
 * <?php foreach (get_terms(‘name’) as $cat) : ?>
    slug, ‘name’); ?>” title=””><?
   php echo $cat->name; ?>”>
   
    <?php endforeach; ?>
 * But i don’t know how to do for to put an “If” if there is not taxonomy to show.
 * I have try something like this but it doesn’t work
 * <?php if( !empty( $cat->name[0][‘name’] ) ) ?>
    <?php foreach (get_terms(‘name’)
   as $cat) : ?> slug, ‘name’); ?>” title=””><?php echo $cat->name; ?>”> <?php endforeach;?
   >
 * Can you help me ?
 * Thanks a lot

Viewing 1 replies (of 1 total)

 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-creator/#post-10635056)
 * Hello [@rico76](https://wordpress.org/support/users/rico76/),
 * Try something like this perhaps:
 *     ```
       <?php foreach (get_terms(‘name’) as $cat) : ?>
           <?php if ( !empty( $cat->name )) : ?>
               <?php echo $cat>name; ?>
           <?php endif; ?>
       <?php endforeach; ?>
       ```
   
 * I removed some of your stuff, you’ll add it back.
 * Regards.

Viewing 1 replies (of 1 total)

The topic ‘Taxonomy Creator’ is closed to new replies.

 * ![](https://ps.w.org/wck-custom-fields-and-custom-post-types-creator/assets/icon-
   256x256.png?rev=2257602)
 * [Custom Post Types and Custom Fields creator - WCK](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-creator/#post-10635056)
 * Status: resolved