Closed GoogleCodeExporter closed 9 years ago
I found the problem and fixed it.
it is not because of timthumb.php, problem is function catch_that_image() which
is include my functions.php.
Thank you
Original comment by bora.tu...@gmail.com
on 19 Dec 2012 at 10:35
Glad you worked it out
Original comment by BinaryMoon
on 20 Dec 2012 at 9:20
I have the same issue. What did you do to fix the issue?
Original comment by ajaykuma...@gmail.com
on 26 Jan 2013 at 6:34
I found different code from somewhere and i changed catch_that_image function
code in function.php with below code
// Get URL of first image in a post
function catch_that_image() {
global $post, $posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i',
$post->post_content, $matches);
$first_img = $matches [1] [0];
// no image found display default image instead
if(empty($first_img)){
$first_img = "/images/default.jpg";
}
return $first_img;
}
Original comment by bora.tu...@gmail.com
on 7 Feb 2013 at 11:50
Original issue reported on code.google.com by
bora.tu...@gmail.com
on 19 Dec 2012 at 2:32