WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Images
[resolved] Can i get the CURRENT POST category images? (2 posts)

  1. Diogo15
    Member
    Posted 3 years ago #

    Hi, i would like to know if i Can get the CURRENT POST category images or also the CURRENT POST taxonomy->term images????

    Thanks for any support!

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

  2. Diogo15
    Member
    Posted 3 years ago #

    I just made a little change to code post earlier!!!

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic