Howdy All,

I have a wordpress website where the featured image is being used as a thumbnail on the front index page.

Here is the code I'm using:

<?php the_post_thumbnail( array(100,75), array('class' => 'alignleft' ) ); ?>

It works fine on a specified category post where I'm using the same code, but not on the front page. The thumbnail shows as 75 x 75px thumbnail.

Anyone know why it's not resizing to 100x75?

Original image size is 300 x 227.

Thanks!

Recommended Answers

PLEASE NOTE: The crop does not work in Wp 3.0+. All that is needed for WP 3.0+ is the call for the thumbnail to post. Then proceed to media in the dashboard and set your thumbnail to crop to the size you wish to use.

Refference:

Jump to Post

All 2 Replies

Why don't you wrap a class around it to overide and do it via CSS?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.