Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--FIVE CATEGORIES-->
- <?php $i = 0; ?>
- <?php
- $display_categories = array('11',"6","13","12","10");
- foreach ($display_categories as $category) { ?>
- <?php query_posts("showposts=1&post_type=product&product_category=$category"); ?>
- <?php while (have_posts()) : the_post(); $i++; ?>
- <div class="column span-4 post-<?php the_ID(); ?><?php if ($i < 5) { ?> append-1<?php } ?><?php if ($i == 5) { ?> last<?php $i = 0; } ?>">
- <h3><em><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></em></h3>
- <h6><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title() ?></a></h6>
- <?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => 'thumbnail', 'width' => '150', 'height' => '150', 'image_class' => '' ) ); ?>
- <div class="excerpt_small"><p><?php echo substr(get_the_excerpt(),0,180); ?>...</p></div>
- <p class="postmetadata"><?php the_time('M d, Y') ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
- <?php endwhile; wp_reset_query(); ?>
- <h6 class="category_more"><a href="<?php echo get_category_link($category);?>">See more in <?php single_cat_title(); ?></a></h6>
- <?php query_posts("showposts=5&offset=1&post_type=product&product_category=$category"); ?>
- <ul>
- <?php while (have_posts()) : the_post(); ?>
- <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="title"><?php the_title(); ?></a></li>
- <?php endwhile; wp_reset_query(); ?>
- </ul>
- </div>
- <?php } ?>
- <!--END FIVE CATEGORIES-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement