I have this piece of code I found on some blog, that\'s supposed to display all images from a WordPress post.
function getImage() {
global $more;
$m
Try this ! It may work.
function getImage() {
global $more;
$more = 1;
$link = get_permalink();
$content = get_the_content();
$count = substr_count($content, '
');
$postOutput = substr($post, 0, $imgEnd+1);
$postOutput = preg_replace('/width="([0-9]*)" height="([0-9]*)"/', '',$postOutput);;
if(stristr($postOutput,'![]()