WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have used timthumb.php to handle various type of image format in my custom theme, but this is making my site slow and more the number of images per page more it is taking to re size, crop them

I am planning to remove timthumb.php file from my theme.Since all my work is at starting phase, so it is not a whole rework for me.

What can be the best approach to accomplish this.Is there anything which needs to be taken care while doing this?

share|improve this question

Just delete your timthumb.php file.

If your site thumbnails use timthumb then the code might look like this

<img src="<?php bloginfo('template_directory'); ?>/xxxxx/timthumb.php?src=<?php echo "original image url" ?>&h=150&w=150&zc=1" /> 

Just replace those instances with code like this

   the_post_thumbnail('thumbnail', array('class' => 'thubnail'));
share|improve this answer
+1 for the counter method from WP :) – Umesh Awasthi Jan 12 '13 at 13:33
Does this take account of the image resizing parameters in the original call? Doesn't look like it does?? – Brian C Sep 8 '14 at 5:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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