SHARE
TWEET

Untitled

a guest Dec 27th, 2012 36 Never
  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 }
RAW Paste Data
Top