I want to use a couple of custom image sizes for a site that I'm developing. When I output the images I sometimes do not get the correct width size because it is mixed up with the height size. It guess it has something to do with how I declare the image sizes in the functions file.
add_image_size( 'small', 145, 999 ); add_image_size( 'medium', 300, 999 ); add_image_size( 'large', 455, 999 ); add_image_size( 'tablet', 1024, 9999 );
$image = wp_get_attachment_image_src(get_field('custom-field'), 'medium'); print_r($image);
Array (  => http://example.com/wp-content/uploads/2012/09/example-300x399.jpg  => 225  => 300  => 1 )
Notice the width size is no. 2 in the array, when it usually is 1. Is the output order different if the image is taller then wider? The "errors" that I get are all from vertical images.