Create category post widget in WordPress

We have learned ho to manipulate WordPress posts using short code and display-posts, if you miss any, following list will help you


Widgets are the objects or controls that can be place in side bars, you can customize them using the Customize button under Design [Block Editor] or Appearance – Customize [ Classic Editor/WP-Admin panel].

Our aim is to create a Text Widget  for side bar and place some category post inside.

  1. Create Text Widget using Customize Widget
  2. add the following Short code in the content section
display-posts category="WordPress"
[above code her]

That’s all , you can see live view of widget example at the top right sidebar titled as WordPress Tips

Published by


A developer,teacher and a blogger obsessed with Python,Dart and open source world from India

One thought on “Create category post widget in WordPress”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.