Ticket #20157: content-gallery.diff
| File content-gallery.diff, 648 bytes (added by , 14 years ago) |
|---|
-
content-gallery.php
37 37 if ( $images ) : 38 38 $total_images = count( $images ); 39 39 $image = array_shift( $images ); 40 $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); 40 if ( has_post_thumbnail( $post->ID ) ) : 41 $image_img_tag = get_the_post_thumbnail( $post->ID, 'thumbnail' ); 42 else : 43 $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); 44 endif; 41 45 ?> 42 46 43 47 <figure class="gallery-thumb">