/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $attachments = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order')); ?> <?php echo wp_get_attachment_image($first_attachment->ID); ?>
URL: http://wordpress.org/support/topic/165921
Comments
