WordPress Block Pattern

My First Custom WordPress Block Pattern

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.






6 responses to “My First Custom WordPress Block Pattern”

  1. Jason Orellana Avatar

    Block Patterns in #WordPress are a workflow game changer. What I previously built in wp_query can now be repeated almost effortlessly anywhe

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

  3. Scott Gruber Avatar

    This Article was mentioned on brid.gy

  4. Jason Orellana Avatar

    This Article was mentioned on brid.gy

  5. Emphasis LA Avatar

    This Article was mentioned on brid.gy

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