Thank you for responding.
I decided to make a test site without the customizations. When I input the code you suggested I got an error saying I had an extra ">" so where. Here is my code.
# Displays post image attachment (sizes: thumbnail, medium, full)
function dp_attachment_image($postid=0, $size='thumbnail', $attributes='') {
if ($postid<1) $postid = get_the_ID();
if ($images = get_children(array(
'post_parent' => $postid,
'post_type' => 'attachment',
'numberposts' => 1,
'post_mime_type' => 'image',)))
foreach($images as $image) {
$attachment=wp_get_attachment_image_src($image->ID, $size); ?>
if(!$attachment) { ?>
<img src="http://keepingnickels.com/wp-content/uploads/2011/04/keepingnickels_thumbnail.jpg" /><?php
<?php } else { ?>
<img src="<?php echo $attachment[0]; ?>" <?php echo $attributes; ?> /><?php
}
}
Did I do it correctly? Thank you so much for your help.