SHARE
TWEET

Untitled

alchymyth Mar 24th, 2011 457 Never
  1. <?php
  2. $myposts = get_posts('posts_per_page=-1&category=9');
  3. if($myposts):
  4. foreach($myposts as $post) :
  5.   setup_postdata($post); ?>
  6.  
  7. <div class="art-PostContent">
  8.  <h3 class="art-PostHeader"> <?php  the_title(); ?> </h3>
  9.  <?php the_content(); ?>
  10.  
  11. </div>
  12.  
  13. <?php endforeach;
  14. else: ?>
  15. <h3>No current posts in this category</h3>
  16. <?php endif; ?>
RAW Paste Data
Top