Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function display_imagens_lista() {
- if($images = get_posts(array(
- 'post_parent' => $teste,
- 'post_type' => 'attachment',
- 'numberposts' => -1, // show all
- 'post_status' => 'published',
- //'post_mime_type' => 'image',
- 'orderby' => 'data',
- 'order' => 'DESC',
- ))) {
- foreach($images as $image) {
- $attimg = wp_get_attachment_link($image->ID);
- echo $attimg;
- }
- }
- }
- ?>
- <div class="slideshow-images">
- <?php display_imagens_lista(); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement