• Resolved thaikolja

    (@thaikolja)


    Hi,

    First off, thanks for the plugin, this is exactly what I was looking for — if it worked…

    I have close to 800 posts, all made in the times before Gutenberg, which I’d like to convert to blocks so I don’t have to do so manually whenever I open a post.

    Those posts are in a custom post type with 'show_in_rest' => true. However, and here comes the thing I don’t understand: When I activate your plugin, all posts of this custom post type are being switched back to the classic editor. I was expecting a button or something where I can batch-convert all posts into blocks, but that doesn’t seem to be the case.

    In fact, I’ve not found a way to turn any classic posts into block-style posts.

    Do I use your plugin wrongly, perhaps? I’m using WP v5.6 since v5.6 > makes Gutenberg unusable due to JS errors.

    Thanks,

    Kolja

    • This topic was modified 3 years, 7 months ago by thaikolja.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Darshan Sawardekar

    (@dsawardekar)

    @thaikolja By default the plugin doesn’t alter the default Gutenberg behavior for custom post types. The plugin provides a ‘post_type_supports_convert_to_blocks’ filter hook that you can use to extend support to your CPT.

    add_filter( 'post_type_supports_convert_to_blocks', function( $supports, $post_type ) {
      if ( $post_type === 'my-cpt' ) {
        return true;
      }
    
      return $supports;
    }, 10, 2 );

    Can you try the above code and let us know if that helps? Thanks.

    Thread Starter thaikolja

    (@thaikolja)

    Thank you, @dsawardekar. Maybe make this a bit more obvious? I could imagine I’m not the only user looking for this function.

    Plugin Contributor Darshan Sawardekar

    (@dsawardekar)

    Makes sense @thaikolja The filter hook was the first step. We’ll probably end up with a Settings Page to configure the list of post types that should be enabled.

    Hi,

    I have installed the plugin, however, I don’t get how to use it.

    I went into the edit mode of a single regular post and the Classic editor still appears there, even though, I pressed update.

    I have no idea how to bulk convert the posts neither how to do it one by one.

    Help would be appreciated.

    Thanks

    Wow, I just submitted a ticket for this. This is a bug, not an enhancement request. Your plugin should NOT disable default functionality

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin doesn’t work at all’ is closed to new replies.