hi, display some random posts in WordPress
Using the code given here you can display five posts in random order on your WordPress Site.
About the format you can adjust as you like, the number of posts is set by numberposts=5
<?php $rand_posts = get_posts('numberposts=5&orderby=rand');
foreach( $rand_posts as $post ) :
setup_postdata($post); ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php the_excerpt() ?>
<?php endforeach; ?>
Related posts:
Using the code given here you can display five posts in random order on your WordPress Site. About format adjust as like, number of is set by numberposts=5
read more...
Tags:
display, random, posts, wordpress,
Some Random Dude is a blog by P.J. Onori that covers design & technology in the broadest ... Posts Tagged display' Click on one of the items below to go to the ...
read more...
Tags:
display, random,

Leave your response!