This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: alchymyth on Mar 24th, 2011  |  syntax: PHP  |  size: 0.35 KB  |  views: 340  |  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. <?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; ?>
clone this paste RAW Paste Data