Share Pastebin
Guest
Public paste!

Christopher Clarke

By: a guest | Aug 29th, 2009 | Syntax: PHP | Size: 0.23 KB | Hits: 56 | Expires: Never
Copy text to clipboard
  1. <?php
  2.  global $post;
  3.  $myposts = get_posts('numberposts=-1&category=5&order=ASC&orderby=ID');
  4.  foreach($myposts as $post) :
  5.  ?>
  6.     <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br />
  7.  <?php endforeach; ?></p>