WordPress +5.9 and Full Site Editing (FSE)

We recommend the two WordPress widgets ‘Classic Editor’ and ‘Classic Widgets’.

If you use a FSE Theme like Twenty Twenty-Two you need own custom code which can be added with Woody code snippets.

Step 1.) Register a custom sidebar:

add_action( 'widgets_init', 'register_custom_sidebars' );

function register_custom_sidebars() {
    register_sidebar( array( 'id' => 'events' , 'name' => __( 'Events' ) ) );
}
For example

Step 2.) Place Term and Category Posts Widget in the WordPress admin Design > Widgets and edit the options:

Step 3.) Add the sidebar with Woody snippets and get an Shortcode:

dynamic_sidebar( 'events' ); 
Add the custom sidebar, get an Shortcode to use it anywhere on pages or posts

Step 4.) Use the Shortcode from Woody snippets on any page or post:

Use the Shortcode from Woody code snippets on any page or post