Return to Snippet

Revision: 30504
at August 16, 2010 03:50 by DanielPaul


Initial Code
<ul>
<?php $rand_posts = get_posts('numberposts=5&orderby=rand');
foreach( $rand_posts as $post ) : ?>
   <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>

Initial URL


Initial Description
Display random posts without a plugin

Initial Title
Wordpress random posts

Initial Tags
plugin, wordpress

Initial Language
PHP