Overview
With more types of reusable content you can create with WordPress, this article seeks to clarify when it makes sense to use certain types in different situations to help guide you to make the best decisions possible. At a high level, this will focus on Template Part blocks, Reusable blocks, and Block Patterns.
Reusable block
The Reusable Block allows you to save a block or group of blocks which you can later use in any post or page on your site. For more information, you can learn more in the Reusable blocks support article.
Template Part
The Template Part block is an advanced block that can be used with a block theme or a theme that supports template editing. They often come with your theme and are used to organize and display your site structure. For more information, you can learn more in the Template Part block support article.
Block Patterns
Block Patterns are a collection of predefined blocks that you can insert into posts and pages and then customize with your own content. For more information, you can learn more in the Block Pattern support article.
Here’s a table comparing these different options to each other:
Template Part | Reusable Block | Patterns | |
Type | Site Structure | User Content | User Content |
Syncing Ability | Synced | Synced | Un-synced |
Example | Footer | Business hours | Call to action |
Site structure means it should not be a part of your content, like a post or page. Syncing ability touches on whether if you update it in one spot, it updates everywhere the same block is used.
Guidelines
Based on the above, this means it’s best to use template parts and reusable blocks for things you want to have in sync with each other whereas patterns are best for content that you expect to change across your site.
In general, template parts should not be added to a reusable block or a pattern since this is meant to represent site structure rather than content. A template part can include a reusable block though or be built using patterns! You can also use block patterns to build templates and template parts, but you should not use a template part inside a pattern.
Situationals
Repeated content across your site
This could be everything from how to get in touch to your business hours to your social media accounts. To avoid having to add the same content to a paragraph block every time you want to place it at the end of your post, you can make it a reusable block.
Repeated structure across your site
For anything that’s more about site structure that’s repeated across your site, like a Header or Footer, it’s best to use a template part. These carry semantic meaning within block themes so it’s important to make the distinction.
Repeated design or layout
When it’s less about content and more about wanting to repeat a design or layout, patterns are best to use. This is because the content doesn’t need to be synced and, instead, what you want repeated is how something visually looks.
Was this article helpful? How could it be improved?
Log in to submit feedback. If you need suppport with something that wasn't covered by this article, please post your question in the support forums.