Would you like to display your recent posts in WordPress? Showing recent posts helps your users look very easily. You can easily insert recent posts in your sidebar, after the end of your post content, inside your post content with a shortcode, in your footer widget sections, or simply somewhere else that you would like. In this post, we can easily show you how to display recent posts in WordPress with a plugin, widget, shortcode, or the manual method with the recent post function.
Using The WordPress Recent Posts Widget
The WordPress platform comes with a built in default widget to display recent posts in your site’s sidebar and any widget ready section. Inside your WordPress admin, and have a look at Appearance » Widgets and also insert Recent Posts widget to a sidebar.
The built in recent posts widget is very basic. You can provide an alternative title to the widget, display date, and add the lots of posts you need to display. After that, click the save button to store your widget settings.
Using Recent Posts in WordPress Widget by Extended Plugin
When you observed that the built in widget we mentioned previously is kind of limited, so it doesn’t also allow you to display thumbnails and excerpts which is usually a priority for users.
Suppose you needed to show thumbnails or excerpts with your recent posts? Suppose you needed to limit these to selected categories and tags?
Definitely, that’s the moment Recent Posts Widget Expanded WordPress plugin can be very handy.
The first thing that you must actually do is install and also activate the wordpress Recent Posts Widget Extended WordPress plugin. Upon activation, basically go to Appearance » Widgets and also insert Recent Posts Extended widget to a sidebar.
Recent Posts Extended widget is provided with so much option or provides you total control about how exactly you need to show recent posts on your the wordpress platform website. It is easy to display thumbnails, excerpts, maximum categories or tags, ignore the advice sticky posts, or a lot more. You can also using the widget to show recent posts from another post type on your website.
Displaying Recent Posts in WordPress Using Shortcode
Adding recent posts to a sidebar is fairly easy, but what if you wanted to show recent posts inside a WordPress post or page? The easiest way to display recent posts in WordPress posts and pages is by using shortcodes.
First thing you need to do is install and activate the Display Posts Shortcode plugin. It works out of the box and there are no settings for you to configure.
Simply edit a post or page where you want to display your recent posts. Next , use the shortcode display-posts with your personal parameters inside the post. The WordPress plugin deals and offers a substantial number of parameters that you are able to using with the shortcode. Here I will discuss a few examples:
Show five recent posts with thumbnails or excerpt
Display recent pages instead of posts
Change the order to title instead of date.
Display recent pages under a specific parent page.
For a full list of parameters visit the plugin’s documentation.
You can using all of these short codes inside a text widget, but as you see 1st you need to enable short codes in your text widgets by inserting this code to your theme’s functions.php file folder and a website particular plugin’s.
Displaying Recent Posts Manually in WordPress Theme Files
The better the word press platform users may like to insert recent posts directly in their word press platform themes files. There are actually a number of methods to do that, but then the simplest the first is to using the built in WP_Query class. Just simply insert this code that you need to show the recent posts.
This code easily shows 5 most recent posts with their title or excerpt. The WP_Query class has a lot of parameters that will allow you to customize it any kind of way that you would like. For more info you need to see the codex.
Thanks for reading this article & I really hope that you may like this Tuts. If yes possible do share with your friends. Happy Coding