Building Custom Blocks with ACF

wpaustralia 205 views 16 slides Nov 27, 2018
Slide 1
Slide 1 of 16
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16

About This Presentation

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...


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

Wrapping up

ACF Blocks = Easy Gutenberg Development

Questions?

Please no generic Gutenberg questions