How to Display Posts From a Specific Category in WordPress?
Organizing your WordPress posts by relevant pages and topics can boost website traffic and reduce bounce rates. If you’re a blogger, WordPress is your go-to platform. For instance, consider a WordPress website dedicated to “Food Recipes & Tips.” You might want to feature specific posts on essential pages tailored to different festivals or events.
Achieving this is easy through category-based content filtering across various pages.
In this article, we’ll walk you through the process of seamlessly displaying this curated content on your website.
Why show posts from a specific category in WordPress?
Arranging your content well is like giving folks a road map to a better website experience. Related posts make it easier for them to find what they need.
Users always want to receive information intuitively. If your website doesn’t give them this feeling, they will immediately move on to other websites instead of spending their valuable time on your website. Furthermore, it also helps increase your website traffic. Showing relevant posts will help users stay on your site longer. People tend to learn more and more. Therefore, they will continue to surf the web to find more information about the topic they are interested in.
So, instead of leaving users to care for themselves, make things easier for them when they visit your site.
How to Show Recent Posts from a Specific Category to a WordPress Page or Post :
For example, when your users read the end of an article, do you want to encourage them to continue reading other articles? We are sure your answer is yes. This is where adding recent posts to a page comes in handy.
Display recent posts from a specific category on a WordPress site using Gutenberg blocks.
Step 1. First, you’ll need to open the page to which you want to add recent posts.
Step 2. Scroll down to see the WIDGETS section and select Latest Posts.
Step 3. Applying these changes will display recent posts from all categories by default.
Step 4. To see only posts from specific categories, scroll down to the Sort & Filter section in Blocking Settings.
Step 5. Here, select the category name in which you want to display posts.
Step 6. The block settings also give you many options, like showing featured images and posting author, date, and content.
Once you’re done, let’s save your settings and preview it.
How to Show Posts from a Specific WordPress Category on the Sidebar: With Plugin.
While WordPress has a built-in widget by default to display recent posts in your site’s sidebar or any area where the widget is available, it does not allow you to filter posts—Posts by category.
This is where the Latest Posts with Thumbnails Widget plugin comes into play. First, you must install and activate the plugin on your website.
Step 1. The recent Posts Widget with the Thumbnails plugin is free so that you can get it directly from the WordPress plugin directory.
Step 2. Once you’re done, navigate to Appearance > Widgets. At the bottom of the page, you should see the “Recent Posts With Thumbnails” widget.
Step 3. You need to add it to your sidebar or another widget-enabled area.
Step 4. The “Recent Posts With Thumbnails” has many options to define how recent posts are displayed on your sidebar.
You can also show excerpts and posts from specific categories, ignore sticky posts, display random posts, and more.
Once you’re done, click the Save button to apply all your settings.
Now, go to the front end to see how your posts display!
Show Recent Posts by Categories to a Page Using Plugins
In the above content, we guide you on how to add posts to pages using Gutenberg blocks.
What if you’re using Classic Editor?
You might need the help of a plugin called Display Posts.
This plugin allows you to easily list content on any place on your website by shortcodes.
To only show posts within a specific category, use the category parameter:
[display-posts category="news"]
That’s it; it is effortless and straightforward.
This post highlights the importance of organizing WordPress content by categories and topics for improved website traffic and user experience. It demonstrates how to display relevant posts seamlessly, making it easier for users to find what they need. This approach can enhance engagement and retention on your website by guiding users to explore related content.