JavaScript for WordPress Forums Gutenberg Development Blocks and sidebar for a specific custom post type? Reply To: Blocks and sidebar for a specific custom post type?

#87303
Zac Gordon
Keymaster

Yes

You would do it in the PHP filter for allowed blocks or white listing blocks. Since it is in the PHP you can write a conditional statement to check if it is a certain post type.

Block Filters