Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="slides">
- <li>
- <div class="photo-1">
- <img src="images/photostream/one.jpg" width="101" height="102">
- <span class="flex-photoCaption"><a href=""> <i class="fa fa-search"></i></a></span>
- </div>
- <div class="photo-1">
- <a href=""><img src="images/photostream/two.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- <div class="photo-1">
- <a href=""><img src="images/photostream/three.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- <div class="photo-1">
- <a href=""><img src="images/photostream/four.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- </li>
- <li>
- <div class="photo-1">
- <a href=""><img src="images/photostream/five.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- <div class="photo-1">
- <a href=""><img src="images/photostream/six.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- <div class="photo-1">
- <a href=""><img src="images/photostream/seven.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- <div class="photo-1">
- <a href=""><img src="images/photostream/eight.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- </li>
- <li>
- <div class="photo-1">
- <a href=""><img src="images/photostream/nine.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- <div class="photo-1">
- <a href=""><img src="images/photostream/ten.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- <div class="photo-1">
- <a href=""><img src="images/photostream/eleven.jpg" width="101" height="102"></a>
- <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
- </div>
- </li>
- </ul>
- <ul class="slides">
- <?php
- global $post;
- $photo_args = array(
- 'post_type' => 'photo_gallery',
- 'posts_per_page' => -1,
- //'post_status' =>'publish',
- 'order' => 'ASC',
- //'offset' => 1
- );
- //$photo_querys = new WP_Query( $photo_args );
- $photo_querys = get_posts( $photo_args );
- //if ($photo_querys -> have_posts()) : while ( $photo_querys -> have_posts()) : $photo_querys -> the_post();
- ?>
- <?php foreach($photo_querys as $post) : setup_postdata($post); ?>
- <li>
- <div class="photo-1">
- <?php
- echo the_post_thumbnail('gallery_image');
- ?>
- <span class="flex-photoCaption"><a href="<?php echo get_permalink(); ?>"> <i class="fa fa-search"></i></a></span>
- </div>
- </li>
- <?php endforeach; ?>
- <?php //endwhile; ?>
- <?php //endif; ?>
- <?php wp_reset_postdata(); ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement