• Hi! this is the code i′m using to call my terms on a single post

    <?php
    
    $terms_as_text = get_the_term_list( $post->ID, 'estado', '', ', ', '' ) ;
    echo strip_tags($terms_as_text);
    
    ?>

    how could i add image to this taxonomy list??? my idea is to use ir like a time line but i can′t get it to work!

    Thanks!

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

    (@mfields)

    Have you tried the “taxonomy-images-list-the-terms” filter? Tis is probably your best bet. Something like this maybe:

    <?php
    print apply_filters( 'taxonomy-images-list-the-terms', '', array(
    	'after'        => '</ul>',
    	'after_image'  => '</li>',
    	'before'       => '<ul class="taxonomy-images-the-terms">',
    	'before_image' => '<li>',
    	'image_size'   => 'thumbnail',
    	'post_id'      => 0,
    	'taxonomy'     => 'category',
    ) );
    ?>

    anyway to do this without creating the links?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Taxonomy image to a single post’ is closed to new replies.