Hi all, first Merry Christmas :). Second, I have question. I would like to have more than one image (let say 3 images) on the excerpt of gallery post. In twentyten theme I found this piece code that outputs one image
<?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); ?>
(there is more…)
But how tu output 3 images? Thank you
- The topic ‘Gallery post format; more than one image’ is closed to new replies.