rundes
Member
Posted 9 months ago #
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!
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',
) );
?>
whatadewitt
Member
Posted 7 months ago #
anyway to do this without creating the links?