toxiccosmos

Slidejs body

Nov 15th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 KB | None | 0 0
  1. <div id="slides">
  2.     <div class="slides_container">
  3.     <?php if ( have_posts() ) : while ( have_posts() ) : the_post();
  4.     $args = array(
  5.     'numberposts' => -1,
  6.     'orderby'=> 'menu_order',
  7.     'order' => 'ASC',
  8.     'post_mime_type' => 'image',
  9.     'post_status' => null,
  10.     'post_parent' => $post->ID
  11.     );
  12.  
  13.     $attachments = get_posts( $args );
  14.     if ( $attachments ) {
  15.     foreach ( $attachments as $attachment ) {
  16.     echo wp_get_attachment_image($attachment->ID , 'full' );
  17.     }
  18.     }
  19.     endwhile; endif; ?>
  20.     </div>
  21. </div>
  22. <div id="image_slider_navigation">
  23.     <a href="#" class="slidesjs-previous slidesjs-navigation"><img src="<?php echo get_template_directory_uri(); ?>/img/arrow-prev.png" width="128px" height="128px" alt="Arrow Prev" /></a>
  24.     <a href="#" class="slidesjs-next slidesjs-navigation"><img src="<?php echo get_template_directory_uri(); ?>/img/arrow-next.png" width="128px" height="128px" alt="Arrow Next" /></a>
  25. </div>
Advertisement
Add Comment
Please, Sign In to add comment