Please help me to activate TimThumb on WordPress
September 7th, 2013
function get_image_path ($post_id = null) {
if ($post_id == null) {
global $post;
$post_id = $post->ID;
}
$theImageSrc = get_post_meta($post_id, ‘ghostpool_thumbnail’, true);
global $blog_id;
if (isset($blog_id) && $blog_id > 0) {
$imageParts = explode(‘/files/’, $theImageSrc[0]);
if (isset($imageParts[1])) {
$theImageSrc = ‘/blogs.dir/’ . $blog_id . ‘/files/’ . $imageParts[1];
}
}
return $theImageSrc;
}
OK. Just 2 topic views ? What the hell people ?