Support » Plugin: Taxonomy Images » Can't get image URL to work

  • I’m able to render some term names and their images but i also want to return the imeg URL’s…. I checked the documentation but couldn’t figure it out.

    i have this in my archive-entertainment.php template (which i have a custom post type for).

    <div class="menus">
    		$terms = apply_filters( 'taxonomy-images-get-terms', '',
    				'taxonomy' => 'entertainmenttype',
    				'term_args' => array(
    					'hide_empty' => 0
    		foreach( (array) $terms as $term) {?>
    			<a href="<?php echo home_url( '/entertainment-type/' ); echo $term->slug; ?>">
    				<?php echo wp_get_attachment_image( $term->image_id, 'entertainment-thumb' ); ?>
    			<a href="<?php echo home_url( '/entertainment-type/' ); echo $term->slug; ?>" class="button">
    				<?php echo $term->name; ?>
    		<?php } ?>

    this works just fine… just need to also return the image url, any help on syntax from anyone?

    thanksin advance!

  • The topic ‘Can't get image URL to work’ is closed to new replies.