{"id":41158,"date":"2022-01-19T10:24:19","date_gmt":"2022-01-19T10:24:19","guid":{"rendered":"https:\/\/s.b\/oikcom\/?post_type=oik-plugins&#038;p=48044"},"modified":"2022-01-19T10:29:35","modified_gmt":"2022-01-19T10:29:35","slug":"gbcptedit-gutenberg-custom-post-type-edit","status":"publish","type":"oik-plugins","link":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/","title":{"rendered":"gbcptedit <span class=\"summary\">&#8211; Gutenberg Custom Post Type edit<\/span>"},"content":{"rendered":"\n<p>Use the gbcptedit WordPress plugin to enable editing of Gutenberg&#8217;s Custom Post Types using your editor of choice.<\/p>\n\n\n<figure class=\"wp-block-post-featured-image\"><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"250\" src=\"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" style=\"object-fit:cover;\" srcset=\"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp 772w, https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1-300x97.webp 300w, https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1-386x125.webp 386w, https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1-768x249.webp 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/figure>\n\n\n<p>This can come in very handy during:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Full Site Editing theme development<\/li><li>Problem determination<\/li><\/ul>\n\n\n\n<!--more-->\n\n\n\n<p>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<br><br>The Gutenberg block editor created a number of new Custom Post Types:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>CPT<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>wp_block<\/td><td>Reusable blocks<\/td><\/tr><tr><td>wp_template<\/td><td>Templates to include in your theme<\/td><\/tr><tr><td>wp_template_part<\/td><td>Template parts to include in your templates<\/td><\/tr><tr><td>wp_global_styles<\/td><td>Global styles to include in themes<\/td><\/tr><tr><td>wp_navigation<\/td><td>Navigation menus<\/td><\/tr><\/tbody><\/table><figcaption>Custom Post Types for the Gutenberg block editor<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"background\">Background<\/h2>\n\n\n\n<p>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 <a href=\"https:\/\/www.oik-plugins.com\/oik-plugins\/oik-types\/\">oik-types<\/a> plugin to do this.<br><br>For each development environment it was a manual process to define the CPT overrides.<\/p>\n\n\n\n<p>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. <\/p>\n\n\n\n<p>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&#8217;d added to my FSE theme.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n<p><table class=\"bw_plug\"><tbody><tr><th class=\"name\">Plugin name and description<\/th><th class=\"links\">Plugin links<\/th><th class=\"vtdlut\">Version, total downloads, last update, tested<\/th><\/tr><tr><td class=\"name\"><strong>gbcptedit<\/strong><br \/>Enable editing of Gutenberg&#8217;s Custom Post Type&#8217;s content.<\/td><td class=\"links\"><a class=\"plugin\" href=\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/\" title=\"Link to the gbcptedit (gbcptedit: Enable editing of Gutenberg&#039;s Custom Post Type&#039;s content.) plugin\">gbcptedit<\/a><br \/><\/td><td class=\"vtdlut\"><span class=\"version\">0.0.0<\/span><br \/><span class=\"downloaded\"><\/span><br \/><span class=\"updated\">January 19, 2022<\/span><br \/><span class=\"tested\">5.9-RC3<\/span><\/td><\/tr><\/tbody><\/table><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"notes\">Notes<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>If your site has multiple users you may want to limit this plugin&#8217;s use to your development environment.<\/li><li>The plugin can be Network activated. <\/li><\/ul>\n<div class=\"cleared clear\"><\/div><a class=\"download\" href=\"https:\/\/www.oik-plugins.com\/plugins\/download?plugin=gbcptedit-gutenberg-custom-post-type-edit&#038;version=0.0.0&#038;id=41161&#038;action=download\">Download&nbsp;gbcptedit-gutenberg-custom-post-type-edit&nbsp;<span class=\"version\">version&nbsp;0.0.0<\/span><\/a>","protected":false},"excerpt":{"rendered":"<p>Use the gbcptedit WordPress plugin to enable editing of Gutenberg&#8217;s Custom Post Types using your editor of choice.<\/p>\n","protected":false},"author":1,"featured_media":41159,"template":"","letters":[547],"oik_tags":[],"class_list":{"0":"post-41158","1":"oik-plugins","2":"type-oik-plugins","3":"status-publish","4":"has-post-thumbnail","6":"letters-g","7":"entry"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>gbcptedit - Gutenberg Custom Post Type edit - [oik] plugins.com<\/title>\n<meta name=\"description\" content=\"Use the gbcptedit WordPress plugin to enable editing of Gutenberg&#039;s Custom Post Types using your editor of choice.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"gbcptedit - Gutenberg Custom Post Type edit - [oik] plugins.com\" \/>\n<meta property=\"og:description\" content=\"Use the gbcptedit WordPress plugin to enable editing of Gutenberg&#039;s Custom Post Types using your editor of choice.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/\" \/>\n<meta property=\"og:site_name\" content=\"[oik] plugins.com\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-19T10:29:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"772\" \/>\n\t<meta property=\"og:image:height\" content=\"250\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/\",\"url\":\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/\",\"name\":\"gbcptedit - Gutenberg Custom Post Type edit - [oik] plugins.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.oik-plugins.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp\",\"datePublished\":\"2022-01-19T10:24:19+00:00\",\"dateModified\":\"2022-01-19T10:29:35+00:00\",\"description\":\"Use the gbcptedit WordPress plugin to enable editing of Gutenberg's Custom Post Types using your editor of choice.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#primaryimage\",\"url\":\"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp\",\"contentUrl\":\"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp\",\"width\":772,\"height\":250},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Plugins\",\"item\":\"https:\/\/www.oik-plugins.com\/?post_type=oik-plugins\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"gbcptedit &#8211; Gutenberg Custom Post Type edit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.oik-plugins.com\/#website\",\"url\":\"https:\/\/www.oik-plugins.com\/\",\"name\":\"[oik] plugins.com\",\"description\":\"WordPress plugins and themes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.oik-plugins.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"gbcptedit - Gutenberg Custom Post Type edit - [oik] plugins.com","description":"Use the gbcptedit WordPress plugin to enable editing of Gutenberg's Custom Post Types using your editor of choice.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/","og_locale":"en_US","og_type":"article","og_title":"gbcptedit - Gutenberg Custom Post Type edit - [oik] plugins.com","og_description":"Use the gbcptedit WordPress plugin to enable editing of Gutenberg's Custom Post Types using your editor of choice.","og_url":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/","og_site_name":"[oik] plugins.com","article_modified_time":"2022-01-19T10:29:35+00:00","og_image":[{"width":772,"height":250,"url":"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp","type":"image\/webp"}],"twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/","url":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/","name":"gbcptedit - Gutenberg Custom Post Type edit - [oik] plugins.com","isPartOf":{"@id":"https:\/\/www.oik-plugins.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#primaryimage"},"image":{"@id":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#primaryimage"},"thumbnailUrl":"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp","datePublished":"2022-01-19T10:24:19+00:00","dateModified":"2022-01-19T10:29:35+00:00","description":"Use the gbcptedit WordPress plugin to enable editing of Gutenberg's Custom Post Types using your editor of choice.","breadcrumb":{"@id":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#primaryimage","url":"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp","contentUrl":"https:\/\/www.oik-plugins.com\/wp-content\/uploads\/2022\/01\/gbcptedit-banner-772x250-1.webp","width":772,"height":250},{"@type":"BreadcrumbList","@id":"https:\/\/www.oik-plugins.com\/oik-plugins\/gbcptedit-gutenberg-custom-post-type-edit\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Plugins","item":"https:\/\/www.oik-plugins.com\/?post_type=oik-plugins"},{"@type":"ListItem","position":2,"name":"gbcptedit &#8211; Gutenberg Custom Post Type edit"}]},{"@type":"WebSite","@id":"https:\/\/www.oik-plugins.com\/#website","url":"https:\/\/www.oik-plugins.com\/","name":"[oik] plugins.com","description":"WordPress plugins and themes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oik-plugins.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/oik-plugins\/41158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/oik-plugins"}],"about":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/types\/oik-plugins"}],"author":[{"embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/oik-plugins\/41158\/revisions"}],"predecessor-version":[{"id":41160,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/oik-plugins\/41158\/revisions\/41160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/media\/41159"}],"wp:attachment":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/media?parent=41158"}],"wp:term":[{"taxonomy":"letters","embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/letters?post=41158"},{"taxonomy":"oik_tags","embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/oik_tags?post=41158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}