I'm new to PHP, and Wordpress, so I was wondering this...

Discussion in 'PHP' started by mrShrimp, Apr 24, 2012.

Thread Status:
Not open for further replies.
  1. #1
    Hi, I have a question about resizing images using PHP. I have this line of code: <?php the_post_thumbnail( array(250,250) ); ?> in my PHP WordPress document. My problem is I only want to be able to set the height of the image, not the width. How would I do this? Also, by setting only the height, will the original image keep its aspect ratio?

    Edit: Problem Solved, sorry for your time
     
    Last edited: Apr 24, 2012
    mrShrimp, Apr 24, 2012 IP
Thread Status:
Not open for further replies.