Amit Bhawani Blog

Stay Updated!

Powered by Genesis

You are here: Home / Wordpress Guide / Show Recent Blog Posts on Sidebar without Plugin

Show Recent Blog Posts on Sidebar without Plugin

April 28, 2009 by Amit Bhawani

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.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook

Related

About

My name is Amit Bhawani and here I like to share my internet/tech experience with my online readers. You can follow me on Twitter, Facebook & Instagram at @AmitBhawani I am also the Editor-in-Chief of PhoneRadar & Master Gadgets

About Amit Bhawani

My name is Amit Bhawani and here I like to share my internet/tech experience with my online readers. You can follow me on Twitter, Facebook & Instagram at @AmitBhawani

Comments

  1. Dat Tai says

    April 26, 2010 at 3:23 pm

    Great posst

    Thanks a lot

  2. Darren says

    February 5, 2011 at 2:18 am

    How do I exclude categories from the recent post list?

    Thanks!

    Darren

Timeline

Check out Just EV Tweets by @amitbhawani

Recommended To Read

  • How to Find your WiFi Signal Strength & Dead spots in your Home – Best Apps
  • The Wuhan Corona Virus Effect in India – How to Stay Safe
  • This Blogger Lost 25Kgs with this Secret Strategy that Includes a Fitness Tracker
  • Making Money on YouTube, MCN, Useful Tools, Tips & Success Stories
  • The #JaguarPerformance Experience that was Mind Blowing