In this video, originally stream on Mar 3, 2022, we talk about how to fully integrate a custom post type and related post meta into Gutenberg and then create the appropriate theme template files for a block theme.
00:00 Intro
05:39 Scaffolding the plugin using the @wordpress/create-block
07:04 Discuss the new flag added to the @wordpress/scripts package
12:00 What will the plugin do?
12:26 Registering the custom post type.
16:09 Registering some post meta ( custom fields )
16:41 Creating a custom document settings panel to manage the post meta.
17:51 Creating a separate build process for our panel.
21:45 Manually enqueueing the assets for our panel.
29:53 Restricting the JavaScript to only load for the custom post type.
32:15 Registering the plugin for our panel.
34:36 Accessing the post meta with the useEntityProp hook.
38:13 Adding the DatePicker and TextControl controls to our panel.
48:26 Registering the block to display our post meta.
01:18:59 Adding a block template to our custom post type
01:30:33 Adding templates to a block theme for our custom post type
01: 35:43 Updating the archive template in the Site Editor
01:38:20 Export your template changes from the database to template files using the export option in the Site Editor screen.
Music: Philanthrope, mommy - Burgundy https://chll.to/bc9c5cfe
#Gutenberg #FullSiteEditing #CustomPostTypes
Watch video Integrating a custom post type into Gutenberg and Full Site Editing | WordPress Tutorial online without registration, duration hours minute second in high quality. This video was added by user Ryan Welcher Codes 25 March 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,464 once and liked it 40 people.