Where do patterns and template parts fit in WordPress?

A header needs to match across pages. A layout you copy into a new page can change once it’s there. At the first GoDaddy Pro Coding Optional meetup, Alex Standiford showed where patterns and template parts fit. I helped the host prepare and sent questions during the demo.

🧱 Choose between patterns and template parts

Use a block pattern when you want editors to start from the same arrangement of blocks. Use a template part when a header or footer belongs in several templates. The Block Editor Handbook covers both tools. You can continue with the second Coding Optional session when you’re ready to build a custom block.

On a client site, I’d share the footer with a template part. If the phone number changes, you can fix it in one place. A pattern makes sense for the contact section on a service page, where the copy can differ from page to page.

🎙️ Recording notes

GoDaddy Developer dates part one to October 14, 2021, in the video description. I contributed through the chat.

Captions and an interactive transcript are in the player controls (Transcript button).

Watch Coding Optional – Part 1: Get started making Blocks quickly with plugins on YouTube.

▶️ Video timestamps

FIELD NOTES

Get the next field note in your inbox

A weekly note from the open-source frontier — what I’m building, breaking, and learning. No spam, no AI summaries, real writing from a real human.

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.