Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php query_posts(''); ?>
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post();
- $args = array(
- 'post_type' => 'attachment',
- 'numberposts' => -1,
- 'post_status' => null,
- 'post_parent' => $post->ID,
- 'orderby' => 'menu_order'
- );
- $original = get_posts( $args );
- if ( $original ) {
- $attachments = array_reverse($original);
- foreach ( $attachments as $attachment ) {
- echo '<li><p>';
- echo wp_get_attachment_image( $attachment->ID, array(746,500) );
- echo '</p></li>';
- }
- }
- endwhile; endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement