Block Patterns are pre-defined groups of blocks curated by a WordPress theme or plugin developer and I have put off learning to build these for a few months until a case presented itself.

Previously I used WP_Query in a Child Theme to display posts of a special category to generate these call to action titles. It was cumbersome and whenever the client needed to update the page I’d have to edit the theme. Today, four years since the Block Editor arrived we can finally configure complex groups of blocks for our clients to drop any post. That’s significant workflow enhancement.

Block Pattern
Block pattern on the front end of a website

In a future release I expect users could build their own patterns within the editor itself and save them to a library just as we can with Reusable Blocks. I’m kinda curious why that ability doesn’t already exist.

I plan to post a build tutorial to joseph-dickson.com this weekend.

Comments

6 responses to “My First Custom WordPress Block Pattern”

  1. Jason Orellana Avatar

    I’m interested in seeing your tutorial and learning more about simplifying workflow. I too constantly do wp queries and want something simpler. Just started experimenting with ACF blocks

  2. Joseph Dickson Avatar

    I started working on the code samples today and will build it into video. Over the past week I’ve discovered some pros and cons.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.