5

How to Display Recent Posts in WordPress

After set up WordPress blog, Everyone want to make beautifull blog with lot of information, like add a widgets, add social follow box, show facebook fan page and twitter updates. Have you ever think about to show recent post in sidebar? so that visitor can find new post from there. You can show Recent post in sidebar with out add any plugins. Put that code in sidebar of blog which given blow or where you want to show.  However you can show at footer too like recent post or popular post.


1. Display the latest 10 posts:

<ul><?php wp_get_archives(‘type=postbypost&limit=10’); ?></ul>

2. Display an archive of the last 6 months:

<ul><?php wp_get_archives(‘type=monthly&limit=6’); ?></ul>

Recent Post

——

Follow HNW on TwitterTwitter, Become a fan on FacebookFacebook and Subscribe to RSSRSS.


Admin

Are you Tech-Savvy? Do you love to update yourself constantly with the Latest News, Blogging Tips, Tech Tips, WordPress Tips or Mobile News, etc and many more. Are you looking forward to get tech information online? If your answer to all the above questions is YES, then HotNewsWorld would serve you the best. You can do all the above mentioned things and many more here at HotNewsWorld.com



Do you like this story?


Sign Up to receive Tech Tips in your Inbox!



No Spam - You can Unsubscribe at any time!

5 Comments

  1. This displays the titles of the posts, but not the posts. How do you actually display the blog entries?

Leave a Reply