We're building a post carousel block using ACF Blocks. We're doing everything from start to finish, including loading a third-party resource (Flickity) and default Gutenberg supports like colors and alignment. No build process, no fancy JavaScript, just Advanced Custom Fields.
🚨 Free Video Series: 7 Tools for Modern WordPress Development 🚨
👉 https://briancoords.com/7tools
👉 Full Transcript/Tutorial - https://www.briancoords.com/acf-block...
👉 ACF Docs - https://www.advancedcustomfields.com/...
👉 Browse the Full Code: https://github.com/bacoords/example-a...
👉 WordPress Newsletter - https://www.briancoords.com/newsletter/
00:00:00 Introduction
00:00:14 Our Plugin Structure
00:00:42 Adding a block.json
00:03:04 Registering our block
00:04:25 Adding a custom field group
00:05:34 Testing our custom field
00:06:09 The render.php file
00:09:31 Adding a CSS stylesheet
00:10:42 Enqueuing JavaScript
00:13:57 Initializing our carousel with JavaScript
00:17:12 Testing on the front end
00:17:36 Using Native Gutenberg supports
00:19:29 Using get_block_wrapper_attributes
00:22:41 Recap
Смотрите видео ACF Blocks Post Carousel Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Brian Coords - WP Dev 17 Май 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,43 раз и оно понравилось 16 людям.