I have a site where the posts are coming up in the classic editor, but should be in the block editor. The site is up to date with WordPress 5.2.3. The theme is based on TwentyTwelve.
No "Classic Editor" plug-in is activated, so there's no reason why Classic is being used in Posts. As a result, all post types come up in the Classic editor. The client wants to use blocks for posts.
Any ideas? There are five post types in play here. I used a code to try and force all the post types to work with Gutenberg, but no results.
// Enable Gutenberg for all post types
function shapeSpace_enable_gutenberg_post_type($can_edit, $post) {
if (empty($post->ID)) return $can_edit;
if ('any' === $post_type) return true;
return $can_edit;
}
// Enable Gutenberg for WP < 5.0 beta
add_filter('gutenberg_can_edit_post_type', 'shapeSpace_enable_gutenberg_post_type', 10, 2);
// Enable Gutenberg for WordPress >= 5.0
add_filter('use_block_editor_for_post_type', 'shapeSpace_enable_gutenberg_post_type', 10, 2);
Cache cleared and everything.
Site is https://moneysmartfamily.com