Have you ever wanted to showcase your recent posts from each 类别 in your WordPress sidebar? Recently, one of our users asked us for an easy way to display recent posts from a specific category in WordPress 侧边栏小部件. In this article, we will cover how to show recent posts by category in your WordPress sidebar.
Simply visit 外观 » 小部件 and add a text widget to your sidebar. Next add [categoryposts] shortcode in the text widget and save it. You can now preview your website to see recent posts by category in the sidebar.