Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My default thumbnail size is 150x150. Therefore, if I use a custom thumbnail size, such as 75x75 it should use the thumbnail of 150x150 and shrink to fit to my size:

get_the_post_thumbnail( $item->ID, array(75,75))

However, it is basing the image off of a thumbnail size of 149x100. The 150x150 image exists, but it refuses to use it.

I figured heck with that, I'll just create a custom 75x75 thumbnail and that will solve the problem:

functions.php
add_image_size( 'listp-thumb', 75, 75, true ); // thumbnails located in list posts

Now to call the new thumbnail:

get_the_post_thumbnail( $item->ID, 'listp-thumb')

The same thing happens. :( Do I need to clear a custom query that may be interfering with this?

share|improve this question

closed as too localized by Rarst Jul 21 '11 at 18:23

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
It turns out I didn't push the code changes to the live server yet. So regenerating thumbnails did nothing. Whoops. Its working now. :) –  brant Jul 21 '11 at 18:00

1 Answer 1

Try installing Ajax Rebuild Thumbnails

This will create the new image size.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.