{"id":20440,"date":"2024-01-05T14:54:03","date_gmt":"2024-01-05T21:54:03","guid":{"rendered":"https:\/\/phoenix.wordcamp.org\/2024\/?post_type=wcb_session&#038;p=20440"},"modified":"2024-02-12T17:54:48","modified_gmt":"2024-02-13T00:54:48","slug":"custom-block-development-using-other-blocks","status":"publish","type":"wcb_session","link":"https:\/\/phoenix.wordcamp.org\/2024\/session\/custom-block-development-using-other-blocks","title":{"rendered":"Custom Block Development\u2026 Using Other Blocks"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Learn how to build a custom block- using only other core blocks. Why? WordPress core already offers blocks for most common HTML elements- paragraphs, headings, images, divs, and more. Instead of starting from scratch on your next custom block, consider building it using the \u201cInnerBlocks\u201d feature to save time and offer a better user experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, we\u2019ll build a custom carousel block using only the Cover block that comes built into WordPress. We\u2019ll register our custom block type and write some JavaScript to get it running. Along the way, we\u2019ll discuss the pros and cons of using the InnerBlocks method of block building.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to build a custom block- using only other core blocks. Why? WordPress core already offers blocks for most common HTML elements- paragraphs, headings, images, divs, and more. Instead of starting from scratch on your next custom block, consider building it using the \u201cInnerBlocks\u201d feature to save time and offer a better user experience. [&hellip;]<\/p>\n","protected":false},"author":14774759,"featured_media":0,"template":"","meta":{"_crdt_document":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_wcpt_session_time":1707595800,"_wcpt_session_duration":3300,"_wcpt_session_type":"session","_wcpt_session_slides":"https:\/\/www.briancoords.com\/phoenix\/","_wcpt_session_video":"","_wcpt_speaker_id":[20438],"footnotes":""},"session_track":[67],"session_category":[61,54],"class_list":["post-20440","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-classroom","wcb_session_category-advanced-development","wcb_session_category-block-editor"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"February 10, 2024","time":"1:10 pm"},"session_speakers":[{"id":"20438","slug":"brian-coords","name":"Brian Coords","link":"https:\/\/phoenix.wordcamp.org\/2024\/speaker\/brian-coords"}],"session_cats_rendered":"Advanced Development, Block Editor","_links":{"self":[{"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions\/20440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":2,"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions\/20440\/revisions"}],"predecessor-version":[{"id":21316,"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions\/20440\/revisions\/21316"}],"speakers":[{"embeddable":true,"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wp\/v2\/speakers\/20438"}],"author":[{"embeddable":true,"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wporg\/v1\/users\/bacoords"}],"wp:attachment":[{"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wp\/v2\/media?parent=20440"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wp\/v2\/session_track?post=20440"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/phoenix.wordcamp.org\/2024\/wp-json\/wp\/v2\/session_category?post=20440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}