How to generate thumbnails when needed only?

Posted by Prem Tiwari | Updated on

Put this in your theme functions file. It will stop WordPress from creating anything but the 3 default sizes when uploading.

When an image is then requested in a particular size, which is not yet generated, it will be created only that once.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers