Add image dimensions

Discussion in 'WordPress' started by bondigor69, Mar 29, 2013.

  1. #1
    hello

    I have this code that scales thumbnails

    <?php do_shortcode('[image-resize height=50 width=50 ref=h default= the_post_thumbnail( );]');     
        ?>
    PHP:
    default means the image that I want to resize.

    how can I output the dimensions

    For now the output is <img src ="example.jpg" alt ="alt">

    I want to add width and height of the resized image.

    Im using Image Resizer On The Fly Plugin
     
    bondigor69, Mar 29, 2013 IP
  2. ashishkg

    ashishkg Active Member

    Messages:
    233
    Likes Received:
    8
    Best Answers:
    3
    Trophy Points:
    68
    #2
    I will help you, PM me...
     
    ashishkg, Apr 8, 2013 IP
  3. bogdannb2005

    bogdannb2005 Greenhorn

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    add code in functions.php
     
    bogdannb2005, Apr 9, 2013 IP