This code will do it:
Code:
$post ['guid'] = base64_encode ( $post ['link'] );
$base_url = str_replace ( basename ( $post ['link'] ), "", $post ['link'] );
for($i = 1; $i <=6 ; $i++) {
$image = str_replace ( basename ( $post ['link'] ), "", $post ['link'] ) . "pics/0" . $i . ".jpg";
$content .= "<a href=\"" . $base_url . "pics/0" . $i . ".jpg\" target=\"_blank\"><img src=\"" . $base_url . "images/0" . $i . ".jpg\"\"></a> ";
if ($i == 3) {
$content .= "<br /><!--more-->";
}
}
$post ['post_excerpt'] .= "<p>" . $content . "</p><p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n";
Let me know if I got your request right.