Build Custom Gutenberg Blocks with Advanced Custom Fields (ACF) for WordPress Block Editor

TechiePress July 19, 2021
Video Thumbnail
TechiePress Logo

TechiePress

View Channel

About

This channel is mainly about coding solutions to every day challenges. The base software used is WordPress/ClassicPress, Woocommerce and other plugins explained simply. Most examples will use PHP, HTML, CSS and JavaScript (React JS, Vue JS and Vanilla JS). If you need to reach me for business, email me on web @ mediauganda [dot] com. Kindly leave a comment, feedback or even a like. Please don't forget to share the videos if they have helped you in one way or the other.

Video Description

Welcome to this tutorial on building a Travel Itinerary Block using Advanced Custom Fields. I know that for many of you WordPress developers out there, learning Javascript just to build blocks for the WordPress Block editor can be a challenge. But, fear not! With ACF, you can build blocks using PHP, HTML and CSS without the need to learn heavy Javascript. In this tutorial, we'll start by explaining why we chose to build a block using ACF. Then, we'll guide you through the process of setting up the ACF Pro plugin, creating block fields, making a custom block plugin, writing your first block HTML, and styling the block on the admin side. You'll also learn how to add dynamic ACF fields to the content section, and save your block field settings using PHP. Each step is broken down into chapters, so you can easily follow along. We've got you covered, from setting up ACF Pro, to writing your first Block HTML and styling the block on the admin side. So, if you're ready to simplify your block-building process and learn the ins and outs of creating blocks using ACF, hit the play button and let's get started! CHAPTERS 00:00 Explaining the build a Block Decision 01:53 Setup ACF Pro Plugin 02:26 Creating Block Fields in ACF Pro 07:34 Make Custom Blocks Plugin 09:42 Create our first ACF Pro Block with render_callback 15:29 Using render template to create ACF block 18:06 Re-adjust ACF Block Settings 20:01 Writing your first Block HTML 22:40 ACF Block Template Settings 26:09 Register ACF Block HTML attributes 27:15 Get ACF Fields stored data 29:08 Add Dynamic ACF fields to the Block HTML 35:23 Styling the block on admin side. 52:52 Styling the Available Services Buttons 59:52 Add dynamic ACF data fields to the content section 01:02:22 Add Dynamic ACF Available Services fields 01:09:18 Save your block field settings using PHP Code sample: https://github.com/yttechiepress/travel-it-block-acf ============================================= HOW TO SUPPORT THE CHANNEL ============================================= Do you like what I am doing? - Join channel membership to get access to perks: https://www.youtube.com/channel/UCk_CWbiRCi34etpks2KwNuQ/join- Buy me a coffee through https://www.buymeacoffee.com/techiepress - Give via PayPal: https://paypal.me/laurencebahiirwa - Visit https://omukiguy.com/support-my-work/ I am social too: Facebook: https://web.facebook.com/TechiePress-100149655032583/ Twitter: https://twitter.com/omukiguy Blog & Newsletter: https://omukiguy.com Github: https://github.com/yttechiepress ------------------------------------------------------------------------------- LEARN MORE IN THE WELL CURATED PLAYLISTS BELOW -------------------------------------------------------------------------------- Learn how to build a plugin from scratch: https://youtu.be/9LtXEMRNln8?t=145 WooCommerce E-Commerce customizations == Build Free Custom E-commerce Online Shop using WooCommerce - https://www.youtube.com/playlist?list=PLNqG1qGUllk2qFmbexV2SikF8bXqvDW-H == Build Free Custom Theme for E-commerce Online Shop using WooCommerce - https://www.youtube.com/playlist?list=PLNqG1qGUllk0uFqUvFFIJ67dSNBKapd7Y ====== Build Dynamic Websites with Elementor ====== == Learn the Elementor basics - https://www.youtube.com/playlist?list=PLNqG1qGUllk27BK71LBJDw4auOl-aVOqG == Build a custom Elementor Widget from Scratch - https://www.youtube.com/playlist?list=PLNqG1qGUllk2pukgHP385ll0ENmRr9E_M ====== How to use WordPress Gutenberg Block Editor ====== WordPress 5.4 Gutenberg Blocks Updates == https://www.youtube.com/playlist?list=PLNqG1qGUllk0lI2Omhvp54Qn9-MIEhQzX WordPress Gutenberg blocks for Designers == https://www.youtube.com/playlist?list=PLNqG1qGUllk3DY91Bq_26L8meIXM_Uo4E Gutenberg WordPress Block Editor tutorials for beginners == https://www.youtube.com/playlist?list=PLNqG1qGUllk2xOKt79aI12GgX2DX0aNx- Custom WooCommerce Gateway Development from Scratch == https://www.youtube.com/playlist?list=PLNqG1qGUllk21IES6ZJ2WkX1BcbPQF4-7 WordPress Custom REST API Namespaces, Endpoints and Examples from Scratch == https://www.youtube.com/playlist?list=PLNqG1qGUllk0npc2ZGPU358Q6S1itFCYR

You May Also Like

Instant Home Decor Upgrades

AI-recommended products based on this video

Loading...
RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

(190)
$36.09
Prime
2K+ bought in past month
Loading...
Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

(23,669)
$10.38
FREE delivery Mon, Sep 15 on your first order
5K+ bought in past month
Loading...
Water Marbling Paint for Kids - Arts and Crafts for Girls & Boys Crafts Kits Ideal Gifts for Kids Age 6-8 8-12

Water Marbling Paint for Kids - Arts and Crafts for Girls & Boys Crafts Kits Ideal Gifts for Kids Age 6-8 8-12

(7,777)
$19.99$19.09
FREE delivery Sat, Jun 14 on your first order
500+ bought in past month
Loading...
Kids Rock Painting Kit - Glow in The Dark - Arts & Crafts Easter Gifts for Boys and Girls Ages 4-12 - Craft Activities Kits - Creative Art Toys for 4, 5, 6, 7, 8, 9, 10, 11 & 12 Year Old Kids

Kids Rock Painting Kit - Glow in The Dark - Arts & Crafts Easter Gifts for Boys and Girls Ages 4-12 - Craft Activities Kits - Creative Art Toys for 4, 5, 6, 7, 8, 9, 10, 11 & 12 Year Old Kids

(4,653)
$24.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
Paint Your Own Moon Lamp Kit, DIY 3D Moon Night Light with Space Figurines & Wooden Stand, Art Supplies Creativity Arts & Crafts Kit for Kids, Toys Girls Boy Birthday Easter Gift Ages 3 4 5 6 7 8 9 10 11 12+

Paint Your Own Moon Lamp Kit, DIY 3D Moon Night Light with Space Figurines & Wooden Stand, Art Supplies Creativity Arts & Crafts Kit for Kids, Toys Girls Boy Birthday Easter Gift Ages 3 4 5 6 7 8 9 10 11 12+

(2,309)
$19.99
FREE delivery Sat, Jun 14 on your first order
400+ bought in past month
Loading...
Generic Collapsible Washing up Bowl Folding Dish Basin Bucket Portable Dish Pan Foldable Wash Basin for Camping Beach RV Backpacking, Green 38x23.5x11.5cm

Generic Collapsible Washing up Bowl Folding Dish Basin Bucket Portable Dish Pan Foldable Wash Basin for Camping Beach RV Backpacking, Green 38x23.5x11.5cm

(0)
$12.19
FREE delivery Aug 18 - 28
Loading...
Meguiar's Ultimate Black Plastic Restorer for Plastic, Vinyl & Rubber Trim, 355mL - G15812C

Meguiar's Ultimate Black Plastic Restorer for Plastic, Vinyl & Rubber Trim, 355mL - G15812C

(3,252)
$15.09
FREE delivery Sat, Sep 20 on your first order
1K+ bought in past month
Loading...
MBLABEL 350 Bags/Roll - 30x50cm(12x20in) Clear Plastic Bags for Groceries, Transparent Produce Bag for Fruits Vegetable Kitchen Food Storage, Small Reusable Poly Packing Bags

MBLABEL 350 Bags/Roll - 30x50cm(12x20in) Clear Plastic Bags for Groceries, Transparent Produce Bag for Fruits Vegetable Kitchen Food Storage, Small Reusable Poly Packing Bags

(127)
$49.98
PrimeFREE delivery Sat, Jun 14
Loading...
4-Ft Vertical Garden Planter for Outdoor and Indoor Plants - Elevated Planter with 4 Rectangular Plastic Planter Boxes for Patio and Balcony (1-Pack/Espresso Brown)

4-Ft Vertical Garden Planter for Outdoor and Indoor Plants - Elevated Planter with 4 Rectangular Plastic Planter Boxes for Patio and Balcony (1-Pack/Espresso Brown)

(685)
$109.98
PrimeFREE delivery Sat, Jun 14
100+ bought in past month
Loading...
Nylon Universal Cable Tie Buckle, Heavy Duty Self-Locking Zip Ties Holder with Pin & Button Design, Multipurpose Plastic Cable Ties Tool for Car Repair, UV Resistant Zipties for Auto Fixing(100pcs)

Nylon Universal Cable Tie Buckle, Heavy Duty Self-Locking Zip Ties Holder with Pin & Button Design, Multipurpose Plastic Cable Ties Tool for Car Repair, UV Resistant Zipties for Auto Fixing(100pcs)

(0)
$9.60$8.60
FREE delivery Jun 16 - 19