Advertisement
rajeshrajan

Quick sand Li

May 9th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. <ul class="ourHolder">
  2.  
  3. <?php
  4. $args = array(
  5. 'posts_per_page' => '-1',
  6. 'post_type' => 'post',
  7. 'post_status' => 'publish',
  8. 'category__in' => $quicksand_categories
  9. );
  10.  
  11. $query = new WP_Query( $args );
  12.  
  13. foreach ($query->posts as $item) {
  14.  
  15. $categories = wp_get_post_categories($item->ID);
  16. ?>
  17. <li id="item" class="item" data-id="id-<?php echo $item->ID ?>" data-type="<?php foreach ($categories as $c) { echo $c . ' ';}?>" >
  18. <div class="item1">
  19. <?php if (get_option('featured') == 'yes') { ?>
  20. <a href="<?php echo get_permalink($item->ID); ?>">
  21. <?php echo get_the_post_thumbnail($item->ID,array(152,205)); ?></a>
  22. <?php } ?>
  23. <br />
  24. <?php if(get_option('titles') == 'yes') { ?>
  25. <a href="<?php echo get_permalink($item->ID); ?>">
  26. <?php echo get_the_title($item->ID); ?>
  27. </a>
  28. <?php } ?></div>
  29.  
  30. <div class="item2">
  31. <?php echo get_the_title($item->ID); ?> <br />
  32. <?php echo get_the_excerpt($item->ID); ?>
  33. <a class="more" href="<?php echo get_permalink($item->ID); ?>">See How</a>
  34. </div>
  35. </li>
  36. <?php } ?>
  37. </ul><?php echo get_option('quicksand_category9'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement