[insert_php]
global $post;
global $more; // Declare global $more (before the loop).
$savedmore = $more;
$more = 1;
echo “
“; echo ‘‘; the_title(); echo ‘‘; echo “ |
“; $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { echo ‘‘; echo wp_get_attachment_image($attachment->ID, “thumbnail”); echo ‘‘; } } echo “ |
“;
$more = $savedmore;
[/insert_php]