Return to Snippet

Revision: 57921
at June 14, 2012 23:50 by rabc


Initial Code
$theImageSrc = 'path/To/Image.jpg';
global $blog_id;
if (isset($blog_id) && $blog_id > 0) {
	$imageParts = explode('/files/', $theImageSrc);
	if (isset($imageParts[1])) {
		$theImageSrc = '/blogs.dir/' . $blog_id . '/files/' . $imageParts[1];
	}
}

Initial URL

                                

Initial Description
http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/

Initial Title
Correct URL to display Thumb in WP MU

Initial Tags
php, wordpress

Initial Language
PHP