

1. Using the Block Editor (Gutenberg)
Since WordPress 5.8, widgets can be added using blocks:
Publish or Update the post.
Go to Posts → Add New/Edit an Existing Post.
Click the “+” icon in the editor.
Search for the “Widgets” category.
Add widgets like:
Recent Posts
Categories
Search
Custom HTML