WordPress.org

Support

Support » Plugins and Hacks » echo image on single term page

echo image on single term page

  • Maartje_1992
    Member

    @maartje_1992

    Hi there,

    I have a custom taxonomy for wich I am using your plugin wich works great.
    Only one thing I can’t figure out but it sounds so simple..

    I have a page for a terms from the taxonomy I am using ( file: taxonomy-taxonomyname.php )
    So when I click a termimage it will send me to this page.

    In this page I want a title, description and image of the term.
    I cant figure out how to echo the image.

    echo wp_get_attachment_image( $term->image_id, 'thumb' );
    wich didn’t display anything

    and:

    <?php
    			$terms = apply_filters( 'taxonomy-images-list-the-terms', '', array(
    					'taxonomy' => 'keurmerk',
    				) );
    
    				foreach( (array) $terms as $term){
    					echo $term;
    				}  ?>

    wich displayed more terms

    https://wordpress.org/plugins/taxonomy-images/

  • The topic ‘echo image on single term page’ is closed to new replies.