/ Published in: PHP
description from title, image size from function.php (addimagesize( 'descr', 278, 200, true );)
Expand |
Embed | Plain Text
<?php $images = get_children(array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 1000, 'offset'=>1)); } else { echo '<ul class="descr-phot">'; foreach ( $images as $attachment_id => $attachment ) { echo '<li>'; $large_image_url = wp_get_attachment_image_src( $attachment_id, 'full'); $thumb = wp_get_attachment_image_src( $attachment_id, 'descr'); echo '</a>'; echo '</li>'; } echo '</ul>'; } ?>
You need to login to post a comment.
