Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 27th, 2012  |  syntax: None  |  size: 0.62 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function mytheme_get_posts( $cat_id, $offset, $posts ) { ?>
  2.  
  3. <div class="entry">
  4.       <?php query_posts( 'cat='. $cat_id .'&offset='. $offset .'&showposts='. $posts ); ?>
  5.       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  6.          <div class="one-third column">
  7.               <img src="<?php the_post_thumbnail();?>" alt="<?php the_title(); ?>" />
  8.               <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
  9.          </div>
  10.       <?php endwhile; endif; // end of the loop. ?>
  11.       <?php wp_reset_query(); ?>
  12.       <div class="clear"></div>
  13. </div><!--/ .entry -->
  14.  
  15. <?php }
clone this paste RAW Paste Data