How to get term/taxonomy image in wordpress?
03:14 25 Sep 2016

I want to display all terms with there image of particular taxonomy. i got all term details using get_term() function.

slug;
    $colors = apply_filters( 'taxonomy-images-get-terms', '', array(
    'taxonomy' => 'vehicle_type',
        'term_args' => array(
            'slug' => $term->slug,
            )
    ) 
);
foreach( (array) $colors as $color) :
    echo wp_get_attachment_image( $color->image_id, 'full', array('class' => 'alignnone'));
    //echo $term->name;
endforeach;

endforeach;
?>

But it is showing same path for all images. http://localhost/mototrader/wp-includes/images/media/default.png

How could i get actual path of image associated to that taxonomy.

Thanks in advance.

php wordpress wordpress-theming