Gutenberg, the new block-based content editor, introduces new tooling to enrich the editing experience. There’s just one little problem. These tools are extremely complicated to use!
Elliot Condon demonstrates an upcoming feature in ACF to help PHP developers create custom block types without a s...
Gutenberg, the new block-based content editor, introduces new tooling to enrich the editing experience. There’s just one little problem. These tools are extremely complicated to use!
Elliot Condon demonstrates an upcoming feature in ACF to help PHP developers create custom block types without a single line of JavaScript.
Size: 6.01 MB
Language: en
Added: Nov 27, 2018
Slides: 16 pages
Slide Content
Building Custom Blocks
With ACF
Elliot Condon
Web Developer at ACF
@elliotcondon @wp_acf
A Quick intro to Gutenberg
Welcome to the Gutenberg Edito
The goal of this new editor is to make adding rich content to WordPress simple and
enjoyable. This whole post is composed of pieces of content—somewhat similar to LEGO
bricks—that you can move around and interact with. Move your cursor around and you'll
notice the different blocks light up with outlines and arrows. Press the arrows to
reposition blocks quickly, without fearing about losing things in the process of copying
and pasting.
Save Dratt
~~ EEN El
Document Block
Status & Visi
Publish immediate
D Stick to tne Front Page
DO Pending Review
Categories
Tags
Prev Gen
Specific areas
for specific content.
the_content();
New Gen
Block based
style guide for
any content type.
the_content();
What are blocks?
Heading
Paragraph
Image
Custom...
Quick Poll
#1 Developer or User?
Quick Poll
#2 Who is using Gutenberg?
Quick Poll
#3 Who is using ACF?
Quick Poll
#4 Who has created a custom block type?
Quick Poll
#4 Who has created a custom block type? Wy
js ho
Why is it so hard?
- Environment (npm and webpack)
- Language (React, JSX)
- API (inflexible)
- Debugging (minified JS code)
- Other restrictions (REST API)
Prove it!
A look at smashing magazine’s tutorial...
Solve it with ACF!
- 100% Dynamic PHP
- Minimal code
- Uses ACF's existing library of fields
- Flexible (allows for changes)
- Speeds up development
Demo
Creating testimonial and featured posts block types