yeni Hali:
Alıntı
/************************************************** *********
Catchall function for getting images
************************************************** *********/
if(!function_exists('get_the_image')){
function get_the_image($arr = false, $default_size = 'medium', $default_img = false) {
}
}
global $post;
$cf_array = load_the_image($arr, $post, $default_size);
$image = display_the_image($cf_array, $post, $default_size, $default_img);
if($image == false) $image = '<!-- No images were added to this post. -->';
return $image;
}
son ayracta hata veriyor
eski hali:
Alıntı
/************************************************** *********
Catchall function for getting images with a link
************************************************** *********/
function get_the_image_link($arr = false, $default_size = 'medium', $default_img = false) {
global $post;
$cf_array = load_the_image($arr, $post, $default_size);
$image = display_the_image($cf_array, $post, $default_size, $default_img);

if($image == false) :
$image_link = '<!-- No images were added to this post. -->';
else :
$post_perm = get_permalink($post->ID);
$image_link = "<a href=\"$post_perm\" title=\"$post->post_title\">$image</a>";
endif;
return $image_link;
}