Problem with thumbnail size

Forum Homepage Forums Community General Problem with thumbnail size

This topic contains 1 reply, has 2 voices, and was last updated by Avatar of bowe bowe 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1276
    Avatar of hernangomez
    hernangomez
    Participant
    Post count: 62

    In others themes i had used the next code : $size = array(70,30);
    $attr = array(
    'alt' => trim(strip_tags( get_the_title() )),
    'title' => trim(strip_tags( get_the_title() ))
    );
    ...
    the_post_thumbnail($size, $attr )

    So this way i get an image of 70×30

    Now with infinity i get the next :

    • the_post_thumbnail('thumbnail-post', $attr );
      ...
      img width="210" height="160" title="The Title" alt="The Title" class="attachment-thumbnail-post wp-post-image" src="/wp-content/uploads/2012/06/500px-Flag.svg_-210x160.png"
      And it’s ok
    • $size = array(70,30);
      $attr = array(
      'alt' => trim(strip_tags( get_the_title() )),
      'title' => trim(strip_tags( get_the_title() ))
      );
      the_post_thumbnail($size, $attr )
      ...
      img width="30" height="30" title="The Title" alt="The Title" class="attachment-30x70 wp-post-image" src="/wp-content/uploads/2012/06/500px-Flag.svg_-150x150.png"
      But it’s wrong. A real 150×150 image reduced to 30×30 instead of 70×30 wich i defined.

    Sure i’m making a mistake, but i don’t know what. Could someone tell me ?
    My Infinity version is 1.0b3 Thanks

    #1297
    Avatar of bowe
    bowe
    Participant
    Post count: 698

    Could you please specify your problem a little bit more? I’m a bit confused in what you’re trying to do :-)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.