Wordpress MU timthumb fix


/ Published in: PHP
Save to your folder(s)

This function will return the correct url for the timthumb php script (wordpress 3.0 or higher required!)

Usage: just call the function in your theme with the post id as parameter, it will return a value so store this into a variable (must be inside the wordpress loop to work)


The function:
$thumb = get_timthumb_thumbnail($post->ID);


I've tested this successfully on my servers so please let me know if you are having any problem with it.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.