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!

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 meeting, networking, learning, and sharing knowledge.