Home Forums General Issues Image size for $last_row Reply To: Image size for $last_row

  • Hi @artdivision

    If you set the Return Value option to “Image Array”, You should be able to do it like this:

    // get the image
    $image = $last_row['Image'];
    // get the medium image
    $size = 'medium';
    $medium = $image['sizes'][ $size ];
    $width = $image['sizes'][ $size . '-width' ];
    $height = $image['sizes'][ $size . '-height' ];
    <img src="<?php echo $medium; ?>" alt="<?php echo $last_row['Title']; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" >

    This page should give you more idea about it:

    I hope this helps 🙂