Return to Snippet

Revision: 27539
at June 14, 2010 10:06 by Tate


Initial Code
$thumbnail_id=get_the_post_thumbnail($post->ID);
preg_match ('/src="(.*)" class/',$thumbnail_id,$link);
echo $link[1];

Initial URL

                                

Initial Description

                                

Initial Title
Extract image path from img tag variable

Initial Tags

                                

Initial Language
PHP