1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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
    SEMrush
     
    bondigor69, Mar 29, 2013 IP
    SEMrush
  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