I am currently using the following to display pods images in a loop:
ID, 'company_logo', true);
$logo = wp_get_attachment_url( $company_logo['ID'], 'thumbnail' );
# resize image before print
echo( "" );
I want the images to be resized to the following fixed dimensions: W:250px and H:120px… what is the correct procedure to output that kind of a layout?
I usually use timthumb for image resizing, but there should be many other options.
First, you need to add the image sizes to your WordPress.
Add some add_image_size calls in your functions.php file: http://codex.wordpress.org/Function_Reference/add_image_size
Once you’ve added the new image sizes, regenerate the thumbnails for your site so all of your images get resized in the new sizes:
Thank you both for your assistance. I went with Scott’s method and it eventually got it right.
The topic ‘Image Resize’ is closed to new replies.