Use the gbcptedit WordPress plugin to enable editing of Gutenberg’s Custom Post Types using your editor of choice.
This can come in very handy during:
- Full Site Editing theme development
- Problem determination
Gutenberg Custom Post Type Edit ( gbcptedit ) is a simple plugin to enable editing of the Custom Post Types created by the Gutenberg plugin, which are now part of WordPress 5.9
The Gutenberg block editor created a number of new Custom Post Types:
|wp_template||Templates to include in your theme|
|wp_template_part||Template parts to include in your templates|
|wp_global_styles||Global styles to include in themes|
Developers and advanced users of Gutenberg blocks and Full Site Editing themes may have tools that can be used to manually alter the post type definitions to enable viewing of the post contents. I used my oik-types plugin to do this.
For each development environment it was a manual process to define the CPT overrides.
Recently I was debugging what should have been a simple problem associated with the new CPT `wp_navigation`. I found that I needed extra code to enable editing of these posts. I added this logic to my theme.
Then I realised that it would be a lot easier if I could simply install and activate a plugin that automates the manual process, and I could remove the extra logic that I’d added to my FSE theme.
|Plugin name and description||Plugin links||Version, total downloads, last update, tested|
Enable editing of Gutenberg’s Custom Post Type’s content.
January 19, 2022
- If your site has multiple users you may want to limit this plugin’s use to your development environment.
- The plugin can be Network activated.