get paid to paste

post attachment

<?php
$attachments = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order'));
if ( ! is_array($attachments) ) continue;
$count = count($attachments);
$first_attachment = array_shift($attachments);
?>




                <?php echo wp_get_attachment_image($first_attachment->ID); ?>

Pasted: Aug 29, 2010, 4:28:49 am
Views: 25