Hello, I am creating a theme where there will be a series of logos along the footer that I would like to be Featured Images of a particular blog category.
So in functions.php I have:
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 50, 50, true );
And in the footer.php I have:
<?php query_posts('cat=4&showposts=5'); ?>
<?php while( have_posts() ) : the_post(); ?>
<?php if(has_post_thumbnail()) { ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail(array(50,50)); ?>
</a>
<?php } ?>
<?php endwhile;?>
Which seems to work quite well if the logo is squared shape. However, if it is a horizontal rectangle you only get the middle section of the logo.
Is there anyway to just specify the width in a Featured Image and let the height size proportionately?
Or is there a better way of doing this?