For my post I have a box for the post image and the size of the box is 214 x 73. I want the image to fit the width of the box and have it cropped at 73px height.
This is what I have so far in my functions.php file
<?php add_theme_support( 'post-thumbnails'); set_post_thumbnail_size();
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'post-thumb', 214, 73 );
}?>
and this is what I have in my content.php file:
<?php the_post_thumbnail('post-thumb'); ?>
What am I doing right/wrong and what do I need to fix to make it work? Also is it possible to make the image centered horizontally when it crops it so that you see the middle of the image?
You can check out my theme here: http://benlevywebdesign.com/wordpress/ to see the post thumbnail box