Many readers seldom browse through our old post to read them out, but installing wordpress plugins like Pagenavi and Related Posts can help to give a new life for your old posts. There is another way to make your old posts have a good chance to read by reader, that is to display random posts on your sidebar.
To display random posts on your sidebar, simply copy and paste the following code to your sidebar.php.
<?php
query_posts(array('orderby' => 'rand', 'showposts' => 1));
if (have_posts()) :
while (have_posts()) : the_post();
the_title();
the_excerpt();
endwhile;
endif; ?>
/images/logo.png)
/images/featured.png)
/images/recentposts.gif)
/images/ico-rss.gif)
/images/cat.png)
code works but doesn’t produce linked results… any help?