• Animalejourbano

    (@animalejourbano)


    Hi! I have a website that loads a list of taxonomy images like so:

    <?php
    $terms = apply_filters( 'taxonomy-images-get-terms', '', array('taxonomy' => $thistax) );
    $terms = apply_filters( 'taxonomy-images-get-terms', '', array('taxonomy'=>'ediciones', 'image_size' => 'detail', 'term_args' => array( 'hide_empty' => 0, 'order' => 'DESC' , 'orderby' => 'title', 'number' => 6 ), 'exclude' => '25'));
    echo '<ul class="ediciones_anteriores clearfix">';
    foreach( (array) $terms as $term){
    echo '<li>';
    echo '<a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '"' . 'data-numero="' .  sprintf(__('%s', 'my_localization_domain'), $term->name) . '"' . '>' . wp_get_attachment_image( $term->image_id, 'thumb' ) .  '</a>';
    echo '</li>';}
    echo '</ul>';
    ?>

    The images loads, but no matter what is write into ‘image_size’ =>’x’, is always loading the full size image.
    I use the full size images in other places, that’s why I upload big images, but it should load the write size.

    Thanks for your help.

    https://www.ads-software.com/plugins/taxonomy-images/

  • The topic ‘Allways loads the full size image’ is closed to new replies.