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 Apr 22nd, 2012  |  syntax: None  |  size: 0.29 KB  |  views: 10  |  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. <ul>
  2. <?php
  3. global $post;
  4. $args = array( 'numberposts' => -1, 'offset'=> 1, 'category' => 395 );
  5.  
  6. $myposts = get_posts( $args );
  7.  
  8.  
  9. foreach( $myposts as $post ) :  setup_postdata($post); ?>
  10.  
  11.         <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
  12.  
  13. <?php endforeach;?>
  14. </ul>
clone this paste RAW Paste Data