WordPress – Dealing with lots of standard image sizes

May 16, 2012

WordPress is a fantastic tool for building websites but sometimes there are little things that are a bit tricky – one of those is thumbnail images. All the more frustrating because it gives you almost all of the tools you need – but not quite all of them. Here is a little utility function I have used to get around the fact that there is no wordpress function for getting a thumbnail image for a specific size (even when you have correctly generated the thumbnail at that size using the add_image_size function.