A WordPress block pattern is a reusable arrangement of blocks that an editor can insert as a single unit — a hero section, a testimonial card, a pricing table. On a site with three editors and twenty page templates, a properly built patterns library cuts editorial time on a new page from 30 minutes to 8. On a site with twenty editors and a hundred templates, it is the difference between editorial scaling and not. Most teams ship an ad-hoc library, add patterns sporadically, and abandon it after six months. The build and the maintenance discipline below make the library a tool the team actually uses.
What’s happening
Patterns live in two places in WordPress:
- Theme-provided patterns: PHP files in
wp-content/themes/your-theme/patterns/that register patterns at theme activation. These come with the theme and update when the theme updates. - Database-stored patterns (called “synced patterns” or, in newer WP, “user patterns”): a post type
wp_blockthat stores editor-created patterns directly in the database. Editors create these from within the Site Editor or Block Editor.
The distinction matters operationally. Theme patterns are version-controlled, ship with the codebase, and are read-only in the editor. Database patterns are editable in the editor but live only in the database — they are not backed up with the theme and do not propagate across sites. A mature WordPress hosting setup uses both: theme patterns for the canonical brand elements, database patterns for editorial flexibility on specific campaigns or sections.
How to verify
Inventory the current patterns:
# theme-provided patterns
ls wp-content/themes/$(wp theme list --status=active --field=name)/patterns/
# database-stored patterns (synced + user patterns)
wp post list --post_type=wp_block --fields=ID,post_name,post_title
# patterns registered by plugins
wp eval 'foreach (WP_Block_Patterns_Registry::get_instance()->get_all_registered() as $p) { echo $p["name"] . "\n"; }'
Then look at how editors are working. Open the Block Editor, click the Patterns icon, and count what is actually available, how many categories, and whether the team’s frequently-used arrangements are listed. If editors are repeatedly copying blocks from one page to another, you have un-captured patterns that should be in the library.
The fix
The build, in four phases:
-
Audit the existing pages. For each existing page on the site, list the distinct block arrangements that appear three or more times. Those are your candidate patterns. Typically a site of 30 pages has 8-12 distinct repeated arrangements — heroes, CTAs, feature grids, testimonials, FAQs, pricing tables.
-
Build the canonical patterns as theme patterns. In
wp-content/themes/your-theme/patterns/, create one PHP file per pattern:<?php /** * Title: Hero with CTA * Slug: yourtheme/hero-cta * Categories: hero, banner * Block Types: core/heading */ ?> <!-- wp:cover {"url":"..."} --> <div class="wp-block-cover"> <!-- wp:heading --> <h1>Your Headline</h1> <!-- /wp:heading --> </div> <!-- /wp:cover -->These ship with the theme, are version-controlled, and appear in the patterns library on every site using this theme.
-
Give editors a “scratch” mechanism via synced patterns. For campaign-specific or short-lived arrangements, editors can create synced patterns from the Block Editor without filing a theme change request. Document the rule: theme patterns for canonical brand elements, synced patterns for campaign and seasonal content. Synced patterns that prove durable (used for six months, modified rarely) graduate to theme patterns in the next theme release.
-
Maintain quarterly. Once a quarter, audit:
- Which theme patterns are actually being used? Patterns inserted zero times in three months are candidates for removal.
- Which synced patterns have proved durable and should be promoted to theme patterns?
- Which new arrangements have emerged that should become patterns?
Without this rhythm, the library decays. A library with 50 patterns where editors only use 8 is worse than a library of 12 well-curated ones.
The maintenance discipline:
- Naming: every pattern has a clear, scannable name. “Hero — Centered with CTA” is good; “Hero 2” is not.
- Categories: use the categories aggressively. Editors find patterns by category, not by scrolling 80 items.
- Screenshots: WordPress generates pattern previews automatically. Verify they look right — sometimes the preview captures a broken state and editors avoid the pattern because the preview looks wrong.
- Documentation: a short README in
wp-content/themes/your-theme/patterns/README.mdlisting each pattern, when to use it, and what to substitute (image URLs, headlines). This README lives alongside the theme in enterprise WordPress support version control.
For WordPress sites where multiple editors collaborate and the patterns library is the bottleneck, Stack Harbor builds and maintains the library as part of enterprise WordPress support operations. Book a WordPress consult if your editorial team is spending more time hunting block arrangements than producing content.