To Get First Image From Post (WP)
February 19th, 2010 | Php , Wordpress
$content = get_the_content(); preg_match_all('/<img[^>]+>/i',$content, $result); $thumb = $result[0][0];
February 19th, 2010 | Php , Wordpress
$content = get_the_content(); preg_match_all('/<img[^>]+>/i',$content, $result); $thumb = $result[0][0];