Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="ourHolder">
- <?php
- $args = array(
- 'posts_per_page' => '-1',
- 'post_type' => 'post',
- 'post_status' => 'publish',
- 'category__in' => $quicksand_categories
- );
- $query = new WP_Query( $args );
- foreach ($query->posts as $item) {
- $categories = wp_get_post_categories($item->ID);
- ?>
- <li id="item" class="item" data-id="id-<?php echo $item->ID ?>" data-type="<?php foreach ($categories as $c) { echo $c . ' ';}?>" >
- <div class="item1">
- <?php if (get_option('featured') == 'yes') { ?>
- <a href="<?php echo get_permalink($item->ID); ?>">
- <?php echo get_the_post_thumbnail($item->ID,array(152,205)); ?></a>
- <?php } ?>
- <br />
- <?php if(get_option('titles') == 'yes') { ?>
- <a href="<?php echo get_permalink($item->ID); ?>">
- <?php echo get_the_title($item->ID); ?>
- </a>
- <?php } ?></div>
- <div class="item2">
- <?php echo get_the_title($item->ID); ?> <br />
- <?php echo get_the_excerpt($item->ID); ?>
- <a class="more" href="<?php echo get_permalink($item->ID); ?>">See How</a>
- </div>
- </li>
- <?php } ?>
- </ul><?php echo get_option('quicksand_category9'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement