daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Oct 18th, 2010 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--FIVE CATEGORIES-->
  2. <?php $i = 0; ?>
  3. <?php
  4. $display_categories = array('11',"6","13","12","10");
  5. foreach ($display_categories as $category) { ?>
  6. <?php query_posts("showposts=1&post_type=product&product_category=$category"); ?>
  7. <?php while (have_posts()) : the_post(); $i++; ?>
  8. <div class="column span-4 post-<?php the_ID(); ?><?php if ($i < 5) { ?> append-1<?php  } ?><?php if ($i == 5) { ?> last<?php $i = 0; } ?>">
  9. <h3><em><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></em></h3>
  10. <h6><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title() ?></a></h6>
  11. <?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => 'thumbnail', 'width' => '150', 'height' => '150', 'image_class' => '' ) ); ?>
  12. <div class="excerpt_small"><p><?php echo substr(get_the_excerpt(),0,180); ?>...</p></div>
  13. <p class="postmetadata"><?php the_time('M d, Y') ?> | <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
  14. <?php endwhile; wp_reset_query(); ?>
  15.  
  16. <h6 class="category_more"><a href="<?php echo get_category_link($category);?>">See more in <?php single_cat_title(); ?></a></h6>
  17. <?php query_posts("showposts=5&offset=1&post_type=product&product_category=$category"); ?>
  18. <ul>
  19. <?php while (have_posts()) : the_post(); ?>
  20. <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="title"><?php the_title(); ?></a></li>
  21. <?php endwhile; wp_reset_query(); ?>
  22. </ul>
  23. </div>
  24. <?php } ?>
  25. <!--END FIVE CATEGORIES-->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top