In one of my latest projects, creating a wordpress premium theme, I need to use the timthumb php class which would properly resize the post thumbnails. It worked perfectly untill I added the theme to the demo which is running wordpress MU (multi user).
The problem is that WordPress MU rewrites the url to the images and therefore timthumb can’t find the images. When I googled for a solution I noticed that I wasn’t the only one having this problem. I tried different solutions but none of them worked so I took a piece of code that was pretty simple and close to the solution and I improved it.
The following function for wordpress should be added in the functions.php of your theme, more instructions can be found in the code snippet itself. If you have any question at all you can always leave a comment below, enjoy! 🙂