I found :
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];
if(empty($first_img)) {
$first_img = "/path/to/default.png";
}
return $first_img;
}
try it!
Hey Elev8tor,
Thank you very much for reaching out and the head up, we are working on this/testing it locally and shall push the update soon, 🙂 . Since you like the plugin, would you mind helping us get the word out abiut it and leave a nice comment and a 5 stars rating for us to get even more users trying it and sharing suggestions ?
Thanks a bunch.
@tiemdesign, thanks a bunch for the head up, we are working on/tssting the integration. I will follow up here once we push it with an update. 🙂 .
Sincerely,
The RSS Post Importer nerd
PS: A 5 stars rating with a nice comment, a tweet or a facebook share is always highly welcome and keep us motivated to keep doing better
Featured image has now been added (if you add a valid full text rss key)