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

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

1 thought on “Create category post widget in WordPress

  1. Pingback: Create a author post widget in WordPress | Scafold and pip

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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.