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
Fixed, you need to add an $imgLength.
function getImage() {
global $more;
$more = 1;
$link = get_permalink();
$content = get_the_content();
$count = substr_count($content, '
');
$imgEnd = $imgBeg + $imgLength;
$postOutput = substr($post, 0, $imgLength+1);
$postOutput = preg_replace('/width="([0-9]*)" height="([0-9]*)"/', '',$postOutput);;
if(stristr($postOutput,'![]()