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

After having no luck with timthumb, and on the advice from this site I am going to edit my theme so it works using native wp functions. However I'm a little stuck.

I found this http://wpquestions.com/question/show/id/1098

Which appears to be a function which will resize images on the fly, but I'm not totally sure how to use it in my theme.

In addition to that, I know there is the normal thumbnails feature in WP - but how would I use that instead of timthumb which currently is just a url in my image source?

share|improve this question

In your theme you need to add_theme_support('post-thumbnails'); and then set up some add_image_size();

By doing this in your themes functions file you'll get have support for the built in Feature images and any image sizes you set up images will be generated in the correct size.

For more information on setting up images sizes the codex offers:


share|improve this answer

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.