Adding sections to a custom post-type is quite easy and happends with a filter. Say you have a post-type called “portfolio”, the correct code would be:
//add sections to portfolio
add_filter( 'cuisine_sections_post_types', function( $types ){
$types[] = 'portfolio';
return $types;
});
By default Cuisine Sections will remove the WordPress wysiwyg editor for pages. If you wish to undo this, use this filter:
add_filter( 'cuisine_sections_remove_editor', function( $types ){
unset( $types['page'] );
return $types;
});
To exclude certain posts or pages from a Sections layout, you can add that post’s ID to another filter:
add_filter( 'cuisine_sections_dont_load', function( $ids ){
$ids[] = '2'; //exclude sections for the Sample Page
return $ids;
});