right now, a thumbnail will be either 150px in height or in width, depending if it's landscape or portrait. Is there a way to make them always the same width and scale them in height accordingly, without squaring them?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
add_image_size() in your
add_image_size( 'post-icon', 150);
...and then use this in your template:
<?php the_post_thumbnail('post-icon'); ?>