u must remplace the follow function in the file function.php:
function get_image_url(){
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id,’large’);
$image_url = $image_url[0];
echo $image_url;
}
by this :
function get_image_url() {

$theImageSrc = wp_get_attachment_url(get_post_thumbnail_id($post_id));

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];

}

}

echo $theImageSrc;

}

Nye oppskrifter

Mammas leverpostei

Postet 20 - des - 2017

0 Kommentarer

Ny Post

5 Delicious Ways To...

Postet 15 - jul - 2019

1 Kommentar