WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Taxonomy Images BETA] Help Please: How to omit description from list of taxonomies terms/im

[Plugin: Taxonomy Images BETA] Help Please: How to omit description from list of taxonomies terms/im

  • Here’s what I’m trying to achieve:

    I have a description for each of my custom taxonomy term as well as an image using the Taxonomy Images plugin. On the homepage I just want to list the terms + their images, but not the description (the part I’m having problems with). On the archive page for each term I’d like to list just the term name + description (this part I can figure out).

    Currently in my template file I have this:

    $cats = get_categories();
    foreach ( $cats as $c ) {
        $url = get_category_link( $c->term_id );
        $img = $taxonomy_images_plugin->get_image_html( 'fullsize', $c->term_taxonomy_id );
        if( !empty( $img ) )
            print '<a href="' . $url . '">' . $img . '</a>';
    }

    which lists the category name + image + description.

    Any help on how to keep the description from showing up would be greatly appreciated.

    Thanks.

    http://wordpress.org/extend/plugins/taxonomy-images/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Fields

    @mfields

    Hmm, are you sure that this is the only code in your template file? This code should only generate linked images.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Taxonomy Images BETA] Help Please: How to omit description from list of taxonomies terms/im’ is closed to new replies.