Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.06 KB | None | 0 0
  1. <ul class="slides">
  2. <li>
  3. <div class="photo-1">
  4. <img src="images/photostream/one.jpg" width="101" height="102">
  5. <span class="flex-photoCaption"><a href=""> <i class="fa fa-search"></i></a></span>
  6. </div>
  7. <div class="photo-1">
  8. <a href=""><img src="images/photostream/two.jpg" width="101" height="102"></a>
  9. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  10. </div>
  11. <div class="photo-1">
  12. <a href=""><img src="images/photostream/three.jpg" width="101" height="102"></a>
  13. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  14. </div>
  15. <div class="photo-1">
  16. <a href=""><img src="images/photostream/four.jpg" width="101" height="102"></a>
  17. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  18. </div>
  19. </li>
  20. <li>
  21. <div class="photo-1">
  22. <a href=""><img src="images/photostream/five.jpg" width="101" height="102"></a>
  23. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  24. </div>
  25. <div class="photo-1">
  26. <a href=""><img src="images/photostream/six.jpg" width="101" height="102"></a>
  27. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  28. </div>
  29. <div class="photo-1">
  30. <a href=""><img src="images/photostream/seven.jpg" width="101" height="102"></a>
  31. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  32. </div>
  33. <div class="photo-1">
  34. <a href=""><img src="images/photostream/eight.jpg" width="101" height="102"></a>
  35. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  36. </div>
  37. </li>
  38. <li>
  39. <div class="photo-1">
  40. <a href=""><img src="images/photostream/nine.jpg" width="101" height="102"></a>
  41. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  42. </div>
  43. <div class="photo-1">
  44. <a href=""><img src="images/photostream/ten.jpg" width="101" height="102"></a>
  45. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  46. </div>
  47. <div class="photo-1">
  48. <a href=""><img src="images/photostream/eleven.jpg" width="101" height="102"></a>
  49. <span class="flex-photoCaption"> <a href=""><i class="fa fa-search"></i></a></span>
  50. </div>
  51.  
  52. </li>
  53. </ul>
  54.  
  55. <ul class="slides">
  56. <?php
  57.  
  58. global $post;
  59. $photo_args = array(
  60.  
  61. 'post_type' => 'photo_gallery',
  62. 'posts_per_page' => -1,
  63. //'post_status' =>'publish',
  64. 'order' => 'ASC',
  65. //'offset' => 1
  66.  
  67. );
  68.  
  69. //$photo_querys = new WP_Query( $photo_args );
  70. $photo_querys = get_posts( $photo_args );
  71. //if ($photo_querys -> have_posts()) : while ( $photo_querys -> have_posts()) : $photo_querys -> the_post();
  72.  
  73. ?>
  74.  
  75. <?php foreach($photo_querys as $post) : setup_postdata($post); ?>
  76.  
  77. <li>
  78.  
  79.  
  80. <div class="photo-1">
  81.  
  82. <?php
  83. echo the_post_thumbnail('gallery_image');
  84.  
  85. ?>
  86. <span class="flex-photoCaption"><a href="<?php echo get_permalink(); ?>"> <i class="fa fa-search"></i></a></span>
  87. </div>
  88.  
  89.  
  90.  
  91. </li>
  92.  
  93. <?php endforeach; ?>
  94.  
  95. <?php //endwhile; ?>
  96. <?php //endif; ?>
  97.  
  98. <?php wp_reset_postdata(); ?>
  99.  
  100. </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement