Show Recent Blog Posts on Sidebar without Plugin

While you are using a wordpress based blog you would like to show all the latest blog posts you have made on your blog’s sidebar , which can help all your blog readers easily navigate through them instead of searching for them. Most Blog themes have around 10 latest posts linked but if you want to show a higher number then you try out using Widgets option available under Appearance > Widgets > Recent Posts

Recent Posts Widget WordPressUnder the Widgets you have a option of – ‘Number of posts to show:
(at most 15)’ which means that you cannot show more than 15 Recent Blog post links on the sidebar and hence you either have to go for some wordpress plugin or else settle with whats offered.

I like to link back to all the latest blog posts for some period of time and this is the reason i was looking through wordpress themes codes for finding the correct code which can be added in the blog’s sidebar.

<li><?php get_archives(‘postbypost’, 30); ?></li>

Using the above code and editing the number in it, you can show as many posts you want in the sidebar or any where in your blog’s theme. This is similar to the simple code we need to set up for scheduled posts which can be shown on your blogs sidebar as future posts.

Related Posts with Thumbnails

Leave a Reply