Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $args = array(
- 'post_parent' => 2436,
- 'numberposts' => '-1',
- 'post_status' => 'inherit',
- 'post_type' => 'attachment',
- 'post_mime_type' => 'image',
- 'orderby' => 'menu_order ID',
- 'order' => 'ASC'
- );
- $images = get_children( $args );
- ?>
- <?php foreach($images as $image) { ?>
- <div class="slide">
- <img src="<?php echo wp_get_attachment_url($image->ID,'large'); ?>" />
- </div>
- <?php }; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement