How to Display Recent Posts in WordPress?

Spread the love

Hey everyone in this post, I’ll walk you through how to display recent posts on your WordPress website and we’ll cover five different methods. So you can pick the one that works best for you adding a recent post area to your website. It is a great way to showcase your reader’s different articles that they might find interesting.


If you want to know about what is WordPress ? and what it is? then simply click this link here.


So I’m showing you these in step by step so keep patience and read the full article. So if you’re ready to let’s dive in the first method.

1.  WordPress block :

By using WordPress latest posts with the WordPress block. Now we have to do that we’ll head over you can use this in a post or a page.

Step 1:

so go to pages I’ll click add new and I’ll create a new page for this just to show you what this looks like and then once you want to add the recent posts, go to where you want it to be and do a search for latest posts this is what we want.

Now we have it, here now once we have this block here, we can come over to the right and make some changes you can choose to do post content.

Step 2:

If you want to excerpt or a full post you can also do a slider on just how much content will be there and you see it changing in real-time just to give you an idea.

Step 3:

You can also choose to display the post date if you want to display the post image and how big you want that to be and where you want it to go. So you have a lot of features to choose from.

Step 4:

You can also choose to sort by oldest to newest or vice versa and you can also filter on either just one particular category or if you want to filter on the or if you want to just do all categories, then you can do that as well and then you can choose how many items you want to showcase in your recent post area.

Then you can even add a little bit of CSS class, then that would just be for making it look however you want it to look. So that’s one way once you’re done with that we can click publish and then we can see what this looks like and that’s particularly to your area obviously. We don’t have feature thumbnails on each post and so that’s why it looks like.

2. Recent Post Widget :

Now method two is by using a widget, so let’s go back to our WordPress dashboard.

We’ll go to appearance we and you normally put this in say a sidebar area or because this theme only has footer areas. I’m going to put recent posts in one of my footer areas. So on the left, you want to scroll to find recent posts widget and then we left-click drag this up and choose where you want it to go, put it over in my footer 2 areas. You don’t have as many options to choose from with this.

 

So you just want to add your title decide how many posts to show and whether or not you want to show the post date and then click Save. Now you see your recent posts over here with the title and the post date and that looks pretty good. But method 3 takes it a little bit further because, if you want to add the thumbnail image then you can do that as well for method 3.

3. Recent Post Widget plugin :

We’re actually going to install a plugin and the plugin is called recent posts widget with thumbnails plugin.

Step 1:

So to do that we want to go to plugins, add new and we’re searching for recent posts widget with thumbnails. This is the one we want, so let’s go ahead and install it and make sure you also stick around to activate it as well.

Step 2:

Now that it’s activated, we can head back over to our widgets area and now we should have a new widget called recent posts with thumbnails. There we go just the one we want, so let’s click left click drag it up and I’m going to put it next to the other one that we did.

Step 3 :

Now with this one, we have quite a bit more options to choose from how many posts you want to show if you want them to open in a new window if you want to do random order if you don’t want to show the current one which is kind of important, which is kind of smart because they’re probably already on the most recent one and you can also choose whether or not to show the title.

You want to show the post author categories several things to choose from scrolling all the way down. You can choose to show the thumbnail and how you want it to show so several more options for you to choose from. We’re gonna click Save and now let’s go back to our site and refresh it. So we can see the recent posts with a thumbnail and again you see this and you can make all the changes that you want.

But now it shows the featured image as well for any posts that I have a featured image for method 4 is great.

4. Recent post using Shortcode :

If you’re still using the classic editor and this will allow you to add recent posts using a Display Post shortcode. it is also using a plugin so to do that let’s head over to our plugins area, add new and we’re looking for display post. This is the one we want, so let’s go ahead and install it and activate it, and then I’ll show you how to add the shortcode to display.

The recent posts great now, it’s activated you can see from plugins.

Step 1:

I’m gonna go back to that pages and I’m going to add that there. I’m gonna open up the recent post page and this is the classic editor that was in and then all you want to do is paste in-display post that is the basic shortcode that you can use.

Then you can also check out the documentation where there are several different shortcodes that you can choose from.

Step 2:

Now you see the recent posts are in here using these shortcodes.

 

Then you can check out the documentation to see all the different other ways to display your recent posts as well. Now the next method is:

5. Code in Theme :

Method 5 is, if you want to dig into the code then you can check out the written article that we have in this link, where you can copy this bit of code and put it in your theme. So that you can display the recent code posts on any poster page, where you add this bit of code to your theme area, and then one of the best ways to test out and see how all of this content is doing. It is by installing a plug-in called monster insights. With monster insights, you see exactly how your website is doing in the eyes of Google Analytics. From here you can see your traffic, your best-performing pages as well as your top-performing affiliate links and so much more to get started just head over to monster insights calm.

Did you learn something from today’s posts? If so comment here.

Thanks for checking in if you have any type of questions then simply contact us. I’ll help you ASAP and don’t forget to comment here.

Keep Visiting !!

0 thoughts on “How to Display Recent Posts in WordPress?

  • Havee you ever considered creating an e-book or guest authoring on other blogs?
    I have a blog centered oon the same topics
    you discuss aand would love to have you share some stories/information. I know my readers wouuld enjoy your work.
    If you are even remotely interested, feel free
    to shoot me an e mail.

Comments are closed.