Did you know aside from having your users view the top 5 posts on the first page, you can also show as many recent posts you want on your homepage. Well in this post I will talk about how you can display recent posts in your wordpress and why should you do it.
Recent Posts
Basically what this will do is display a list of recent posts in your blog. You can insert this anywhere on the template, but most people do it on the sidebar. You do not need a widget or plugin to do this. All you need is the code below.
<?php get_archives(‘postbypost’, ’40′, ‘custom’, ‘<li>’, ‘</li>’); ?>
As you see the number 40 means it will show 40 recent posts on the main page. This is what is currently being displayed on Balkhis. (I know it is alot, but it will change with the new template.. Inside Leak)
Anyways as you can see all the above function can do is display the link to recent posts, and many people have modified codes in different ways to help themselves.
For those who like everything to be done via admin panel, I looked in the plugin directory of wordpress to find this one. This plugin will let you display excerpt and bunch of other features. Everything done via admin panel. Download this plugin.
Now that you know how to display recent posts in wordpress, I will tell you why you should display it.
Main advantage of displaying Recent posts in your Wordpress is SEO. Yes, in my opinion that it helps a site in indexing and in ranking when you display a link to recent posts on wordpress. Some sites does not get indexed quickly, and if pages are indexed, they are often ignored due to lack of importance. What do I mean by lack or importance? I am displaying 5 posts on one page, and if I post 2 – 3 posts a day within 2 days that one post will be on the second page. To show a search engine bot that this page is important index it and rank it, you need to put the links on homepage. Now I am not saying display all 40, you can display 10, 15 or so. Now let me explain to you why I think this way. Aside from your homepage, what else gets high PR, or get mentioned when given sitelinks in google. The About page, Contact page, and some other pages that are linked through the homepage. I figure if one put about 10 – 15 recent post links on the homepage, search engine will visit them daily for a certain period of time which ensure that those posts get indexed and ranked.
The next advantage is, it helps users like me. While search is a good option, I usually look at the recent posts to keep track of the blogs that I read. Whether I have read that post or not, so it is just another cool thing to add on your blog for your users.
Do you have recent posts on your blog?