WordPress.org

Forums

Taxonomy Images
Incorrect URL of image being retrieved? (2 posts)

  1. sawnyahinabox
    Member
    Posted 1 year ago #

    Hello,

    http://www.web-care.co.za/product-category/?prodCat=In-Vehicle%20Controller&prodSup=AAEON

    The URL of the image I have on the left hand side of the page, is supposed to be http://www.web-care.co.za/wp-content/uploads/2014/03/aaeon-big.jpg

    But instead it is being retrieved as:
    http://www.web-care.co.za/wp-content/uploads/2014/03/aaeon-big-e1399028137253.jpg

    This gives the incorrect size of the image.

    <?php $terms = apply_filters( 'taxonomy-images-get-terms', '', array(
    	'taxonomy' => 'productcategory','image_size' => 'Fullsize') );
    	if ( ! empty( $terms ) ) {
    									print "\n" . '<div class="row">';
    									foreach( (array) $terms as $term ) {
    		if($term->name == $prodSup){
    		print "\n\t" . wp_get_attachment_image( $term->image_id, 'Fullsize' );
    		}
    	}
    	print "\n" . '</div>';
    	} ?>

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

  2. sawnyahinabox
    Member
    Posted 1 year ago #

    Please help me get the fullsize of the image.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Taxonomy Images
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic