feelfree82

Untitled

Feb 24th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php query_posts(array('post_type'=>'portfolio', 'numberposts' => 5, 'orderby' => 'rand')); ?>
  2. <?php while ( have_posts() ) : the_post(); ?>
  3. <ul><li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li></ul>
  4. <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment