My question is about image sizing. I get how to the sizing/cropping stuff natively in WP
add_image_size( 'thumb-crazy', 500,500, true);
And then in the template type:
if ( has_post_thumbnail() ) {
the_post_thumbnail('thumb-crazy'); //This images get dimensions 500x500.
}
But I'm struggling how to set which image-sizes to use for ACF-plugin:
When I put this in functions.php
add_image_size( 'thumb-crazy', 500,500, true);
I select thumb-crazy
from the attributes of the image-field. (It doesn't to do any crop at all or some totally other dimensions)
$image = get_field('image_personnel');
$size = 'thumb-crazy';
echo wp_get_attachment_image( $image, $size );
It doesn't have the effect that the image is 500x500 cropped. Why? Is this an issue with the plugin or am I missing something?
add_image_size
, I was just commenting on your statement "I select thumb-crazy from the attributes of the image-field", which has nothing to do with front end output. all ACF does is store the attachment ID, everything else works identically to the WordPress API regarding images and sizes. – Milo Apr 24 '14 at 22:06