How to display a widget on specific post types

Conditionally display widgets depending on the post type

Widgets WordPress