Hi.
How can i modify the kriesi_post_thumb.php file to load images from a custom field instead of the wordpress featured image function?
I need to do this because i have a very old website with hundreds of posts, built before wordpress launch of the featured image function, so all the "featured images" urls are stored on a custom field called "image"
on my previous theme, i used to get the image url using this:
get_post_meta($this_post, "image", $single = true);
So i tried using this code on your file kriesi_post_thumb.php:
if(!has_post_thumbnail())
{
$image_src[0] = get_post_meta($this_post, "image", $single = true);
$image_src2[0] = get_post_meta($this_post, "image", $single = true);
}
else
{
$image_src = wp_get_attachment_image_src($thumbnail_id, $option['size'][0]);
$image_src2 = wp_get_attachment_image_src($thumbnail_id, NULL);
}
But no success. The images do show up on the site, and the work perfectly on the homepage accordion slider. But on the post thumbnails they are not being resized by timthumb. Plus, an image square gets added to very top of each post content on single.php, which is awful :p
Can you please help me out???
Thanks in advance














