How do I resize WP images?

84 views
asked Jan 17, 2013 in Website Builder by SunFun (3,000 points)
Hi there,
I am displaying images in my WP sites in loops, I have the line below to set up the images size :
echo( "<img src=\"$logo\"[0] width=\"250\" height=\"120\" />" );
however the size of the images keep changing throughout the output.
How do I make it fixed? Please help
Thanks

2 Answers

0 like 0 dislike
answered Jan 17, 2013 by WebGuru (9,280 points)
Insert theright dimensions and then check "Crop thumbnail to the  exact dimensions. Go to  Appearance > Media and run the following http://wordpress.org/extend/plugins/regenerate-thumbnails/
0 like 0 dislike
answered Jan 17, 2013 by TopNet (10,360 points)
First add the image sizes in your WordPress.
Add add_image_size calls in the functions.php file http://codex.wordpress.org/Function_Reference/add_image_size
Then  regenerate the thumbnails for your site so that all your images get resized:
http://wordpress.org/extend/plugins/regenerate-thumbnails/
...