/handbook/developing-for-block-editor-and-site-editor/a-complete-guide-on-how-to-choose-what-to-build/
What We Do
Digital Platform MigrationsKey SolutionsManaged ServicesArtificial IntelligenceIndustriesProducts
OnePress
Unify multiple brands on one governed WordPress platform.
Design & UI/UX
Gutenberg-native UX, UI, and design systems for visitors and editors.
WordPress Modernization
Modernize WordPress for better performance, architecture, and AI readiness.
WordPress as a DXP
WordPress as a composable DXP when monolithic systems no longer cut it.
Headless WordPress
Omnichannel content delivery without sacrificing marketing autonomy.
Frappe/ERPNext
Build scalable ERP and custom applications, from implementation to ongoing support.
Discovery
Strategic consultancy & project roadmap
Growth Services
On demand development & consultation
Site Maintenance
Annual maintenance. Done for you
QE Services
Testing across SDLC for assured quality
Hosting Migration
Move to a performant hosting with zero downtime
WooCommerce
Enterprise commerce delivered without lock-in
Staff Augmentation
Expert WordPress engineers, onboarded in a week
All Services
A suite of services for any need

Publishio : Publish on your WordPress website from Claude & ChatGPT

Extending the WordPress AI Plugin Releasing Connectors for OpenRouter, LM Studio & Universal OpenAI

How rtCamp saves 100 hours of teams using AI powered Sales Qualification
eCommerce
Scale your e-commerce with WooCommerce, integrations, and custom extensions for growth.
EasyEngine
Server management tool that makes using WordPress on Nginx easy.
Web Auditor
Performance Audit & Insights for your Website.
rtMedia
A complete media management plugin for WordPress.
Resources

About Us

CLEAR
Resources
Developing for Block Editor and Site Editor
Development approaches
How to choose what to build
Topics
On this page
Step 1: Understand the User and Their Goals
Step 2: Atomic vs Molecular Structures
Approach 1: Using Core Blocks Only
Approach 2: Using Core Blocks + Block Pattern
Approach 3: Using Core Blocks + Block Pattern with Restrictions
Approach 4: Building a Custom Icon Card Block
Bonus: Using Block Patterns with Dynamic Blocks
Useful links
Last updated on May 26, 2026
A Complete Guide on How to Choose What to Build
Before deciding what to build and how to approach its recommended to focus on these key steps:
- Understand the Users: Identify who will use the solution (content creators, designers, etc.) and their technical abilities.
- Define the Goals: Are users looking for flexibility (like a page builder) or structured content (fixed templates)? Clarify their objectives.
- Determine Complexity: Choose between flexible, composable systems (like atomic design with core blocks) or more locked-down, custom-built components.
- Balance Flexibility and Control: Tailor the editorial experience to meet client needs—either give freedom or limit customization with block locking or custom blocks.
- Plan for Maintenance: Consider future updates and how easy it will be to maintain and evolve the solution.
Step 1: Understand the User and Their Goals
Before deciding how to build the design in WordPress, you should ask:
- Who is going to use this? Who will be adding content to the website? Is it a client, a content editor, or someone else?
- What are their goals? Do they want a fixed structure for their content, or do they want more freedom to design their pages?
Some clients just want to add content without worrying about design, while others want control over how things look. Most fall somewhere in between, so it’s important to figure out their needs early on.
Step 2: Atomic vs Molecular Structures
Based on their goals, you’ll decide if the client needs:
- More flexibility: Where they can build pages from individual, smaller blocks (like pieces of LEGO).
- More structure: Where the design and layout are fixed, and they just fill in the content.
Let’s look at an example design and how you could build it in WordPress:
Example:
Approach 1: Using Core Blocks Only
In this approach, you rely solely on WordPress core blocks like the Group block, Columns block, Heading block, Image block, and Paragraph block.
Here’s how you can insert these blocks manually in the WordPress block editor:
-
Insert Group Block
-
Add a Heading Block inside the Group
-
Insert a Columns Block with 3 Columns
-
In each column, add the following:
- Image Block
- Heading Block
- Paragraph Block
-
This is completely flexible, and editors can adjust any part of the content and layout.
Approach 2: Using Core Blocks + Block Pattern
A block pattern provides a predefined layout that users can insert easily. Here’s how you can create a block pattern in code.
Registering a Block Pattern in PHP:
Add this to your theme’s functions.php file or a plugin.
function register_custom_block_pattern() {
register_block_pattern(
'mytheme/icon-card-pattern',
array(
'title' => __( 'Icon Card Layout', 'mytheme' ),
'description' => _x( 'A layout with a heading, 3 columns with image, heading, and text.', 'Block pattern description', 'mytheme' ),
'content' => '
<!-- wp:group -->
<div class="wp-block-group">
<!-- wp:heading -->
<h2>My Icon Card Section</h2>
<!-- /wp:heading -->
<!-- wp:columns -->
<div class="wp-block-columns">
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:image -->
<figure class="wp-block-image"><img src="icon1.png" /></figure>
<!-- /wp:image -->
<!-- wp:heading -->
<h3>Heading 1</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Some text here.</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:image -->
<figure class="wp-block-image"><img src="icon2.png" /></figure>
<!-- /wp:image -->
<!-- wp:heading -->
<h3>Heading 2</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Some text here.</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:image -->
<figure class="wp-block-image"><img src="icon3.png" /></figure>
<!-- /wp:image -->
<!-- wp:heading -->
<h3>Heading 3</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Some text here.</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
</div>
<!-- /wp:group -->',
)
);
}
add_action( 'init', 'register_custom_block_pattern' );
- This registers a block pattern named “Icon Card Layout.”
- Editors can insert this layout with one click, then modify the content (text, images) as needed.
Approach 3: Using Core Blocks + Block Pattern with Restrictions
Here, we add block locking to restrict what editors can do. For instance, you can lock the blocks to prevent them from being moved or removed.
Restricting Block Editing with Block Locking:
Add this to your JavaScript file, usually enqueued in the admin area of WordPress.
const { dispatch } = wp.data;
const { select } = wp.blocks;
const { lockBlock } = wp.editPost;
// After inserting the pattern, lock specific blocks
wp.domReady(() => {
const blockEditor = wp.data.select('core/block-editor');
const blocks = blockEditor.getBlocks();
blocks.forEach((block) => {
if (block.name === 'core/columns') {
// Lock movement and removal for column blocks
dispatch('core/editor').updateBlockAttributes(block.clientId, {
lock: {
move: true,
remove: true
}
});
}
});
});
This code locks the movement and removal of the columns block, so editors can only edit the content inside the columns but can’t change the layout.
Approach 4: Building a Custom Icon Card Block
For this, you would create a custom block. Let’s create a custom block named “Icon Card,” where the user picks an icon and fills in text, but the design (spacing, colors, layout) is fixed.
const { registerBlockType } = wp.blocks;
const { RichText } = wp.blockEditor;
const { IconButton } = wp.components;
registerBlockType('mytheme/icon-card', {
title: 'Icon Card',
icon: 'id-alt',
category: 'design',
attributes: {
icon: {
type: 'string',
default: ''
},
title: {
type: 'string',
source: 'html',
selector: 'h3',
},
description: {
type: 'string',
source: 'html',
selector: 'p',
}
},
edit: ({ attributes, setAttributes }) => {
return (
<div className="icon-card">
<IconButton
icon={attributes.icon || 'id'}
label="Select Icon"
onClick={() => setAttributes({ icon: 'heart' })} // example to change icon
/>
<RichText
tagName="h3"
value={attributes.title}
onChange={(title) => setAttributes({ title })}
placeholder="Add title"
/>
<RichText
tagName="p"
value={attributes.description}
onChange={(description) => setAttributes({ description })}
placeholder="Add description"
/>
</div>
);
},
save: ({ attributes }) => {
return (
<div className="icon-card">
<span className={`icon ${attributes.icon}`}></span>
<RichText.Content tagName="h3" value={attributes.title} />
<RichText.Content tagName="p" value={attributes.description} />
</div>
);
}
});
Create the Block.
function enqueue_icon_card_block_assets() {
wp_enqueue_script(
'icon-card-block',
get_template_directory_uri() . '/build/icon-card.js',
array( 'wp-blocks', 'wp-element', 'wp-editor' )
);
}
add_action( 'enqueue_block_editor_assets', 'enqueue_icon_card_block_assets' );
Enqueue the Block.
This will create a custom block with a fixed design where editors can pick an icon, add a heading, and add some description text.
Bonus: Using Block Patterns with Dynamic Blocks
Dynamic blocks in Gutenberg are blocks where the content is generated or rendered on the server side, rather than being entirely static in the block editor. This allows for content that can change dynamically based on data or logic at the time of rendering. Dynamic blocks are useful for displaying content that might vary over time or depend on certain conditions, like recent posts, user data, or any other server-side information.
Also, consider choosing dynamic blocks when you are not sure about content changes or if your design/requirements frequently change then considering dynamic blocks will be the best choice to handle this scenario also by this way you don’t need to create block transforms and add deprecations to your block.
For dynamic blocks (blocks whose content updates automatically), you can combine the dynamic block with a pattern to make content easier to insert while keeping flexibility.
Useful links
- Templates vs Template Parts vs Patterns
- Should we look at the most atomic elements first (bottom-up) or should we look at pages/patterns (top-down)?
Credits
Utsav Patel
Author
Utsav Patel
Author
Good Work. Good People.
Industry partnerships
Compliance certifications
United States
India
© rtCamp Inc. since 2009. All rights reserved.
Terms of Service · Privacy Policy · Trust Center
Company
Solutions
Subscribe to Campfire for fresh insights and stories from people behind rtCamp
Δ
Email(Required)
Submit
United States
India
© rtCamp Inc. since 2009. All rights reserved.
Terms of Service · Privacy Policy · Trust Center
Cookie Consent
We value your privacy
We use cookies to give you the best possible experience. By clicking “Accept,” you consent to our use of cookies to improve site functionality, analyze usage, and personalize content and communications. Your privacy matters to us, and we are committed to handling your data responsibly and transparently. Please check our Privacy Policy for more details.
Manage PreferencesDon’t AllowAllow All
Why do we use cookies?
×
By clicking "Accept" or "Decline All" at the bottom, you consent to the use of cookies and other tools as described in our Cookie Policy in accordance with your settings and accept our Terms of Service.
Toggle EssentialEssential
Essential cookies enable basic functions and are necessary for the proper function of the website.
Name
Description
Duration
Geolocation Config
This cookie is used to store the consent settings based on the visitor's location.
30 days
Cookie Preferences
This cookie is used to store the user's cookie consent preferences.
30 days
Toggle CloudFlareCloudFlare
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
Name
Description
Duration
cf_clearance
Whether a CAPTCHA or Javascript challenge has been solved.
session
Toggle CommentsComments
These cookies are needed for adding comments on this website.
Name
Description
Duration
comment_author
Used to track the user across multiple sessions.
Session
comment_author_email
Used to track the user across multiple sessions.
Session
comment_author_url
Used to track the user across multiple sessions.
Session
Toggle GodamGodam
GoDAM" is primarily a specialized WordPress plugin and media management service designed to enhance video hosting, marketing, and asset management directly within the WordPress dashboard.
Service URL: godam.io (opens in a new window)
Name
Description
Duration
user_image
Temporarily stores the path to the user's avatar or profile picture for quick rendering in the website header.
session
user_id
Stores the numerical ID of the logged-in user to maintain session continuity and basic site operations.
session
full_name
Stores the logged-in user's display name to personalize the site interface without needing database queries.
session
system_user
First-party cookie used to store basic application state identifying the current system user role.
session
sid
A generic session ID cookie used to maintain user state and functionality as the visitor navigates through the site.
session
Toggle Google reCAPTCHAGoogle reCAPTCHA
Google reCAPTCHA helps protect websites from spam and abuse by verifying user interactions through challenges.
Name
Description
Duration
_GRECAPTCHA
Google reCAPTCHA sets a necessary cookie (_GRECAPTCHA) when executed for the purpose of providing its risk analysis.
179 days
Toggle Google Tag ManagerGoogle Tag Manager
Google Tag Manager simplifies the management of marketing tags on your website without code changes.
Name
Description
Duration
cookiePreferences
Registers cookie preferences of a user
2 years
td
Registers statistical data on users' behaviour on the website. Used for internal analytics by the website operator.
session
Toggle StatisticsStatistics
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Toggle Factors AIFactors AI
Factors.ai is a B2B account intelligence and marketing analytics platform that helps Go-To-Market (GTM) teams identify anonymous website visitors, track buyer journeys, and measure the ROI of marketing campaigns.
Service URL: www.factors.ai (opens in a new window)
Name
Description
Duration
_fuid
It is sent to capture session details and track user behavior across your website to provide behavioral data and intent signals.
1 Year
Toggle Google AnalyticsGoogle Analytics
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
Name
Description
Duration
FPGSID
Stores a session or user identifier to track how visitors interact with a website. This helps Google Analytics measure website performance, user engagement, and usage patterns.
Session
FPLC
Used by Google Analytics to link visitor interactions and sessions across multiple related domains.
20 hours
FPID
A server-side Google Analytics cookie used as an alternative user identifier when third-party cookies are restricted.
2 years
_ga
ID used to identify users
2 years
_ga_
ID used to identify users
2 years
Toggle Jetpack StatsJetpack Stats
Jetpack's built-in visitor analytics. It records page views, referring sites, search terms, and outbound link clicks, and also carries the shared visitor-tracking library used by Jetpack Instant Search and WooCommerce Analytics.
Service URL: automattic.com (opens in a new window)
Name
Description
Duration
tk_aip
Stores a list of anonymous visitor IDs so they can be merged into one identity once a visitor is recognized.
Up to 5 years
tk_tc
Used once per page load to work out which cookie domain the Tracks library should use, then removed as soon as it's read back.
Session (deleted immediately after use)
tk_qs
Queues analytics events for Jetpack's Tracks library so none are lost if the page closes before they can be sent.
30 minutes
tk_ai
Stores a randomly-generated anonymous visitor ID so Jetpack's Tracks analytics library can link tracking events to the same visitor.
Session in wp-admin; up to 5 years on the frontend
Toggle Microsoft ClarityMicrosoft Clarity
Clarity is a web analytics service that tracks and reports website traffic.
Service URL: clarity.microsoft.com (opens in a new window)
Name
Description
Duration
CLID
Identifies the first-time Clarity saw this user on any site using Clarity.
12 months
ANONCHK
Indicates whether MUID is transferred to ANID, a cookie used for advertising. Clarity doesn't use ANID and so this is always set to 0.
Session
_clck
Persists the Clarity User ID and preferences, unique to that site is attributed to the same user ID.
12 months
_clsk
Connects multiple page views by a user into a single Clarity session recording.
12 months
Toggle Parse.lyParse.ly
Parse.ly is a content analytics platform that helps publishers optimize audience engagement and content performance.
Name
Description
Duration
_parsely_session
JSON document storing information identifying a browsing session according to Parsely’s proprietary definition
30 minutes
_parsely_visitor
JSON document uniquely identifying a browser and counting its sessions
13 months
cookies.js_dtest
This cookie determines whether the browser accepts cookies.
session
Toggle MarketingMarketing
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.
Toggle Bing / MicrosoftBing / Microsoft
Bing, powered by Microsoft, is a search engine providing web, image, video, and map search capabilities.
Name
Description
Duration
MR
Used to collect information for analytics purposes.
6 months
ANONCHK
Used to store session ID for a users session to ensure that clicks from adverts on the Bing search engine are verified for reporting purposes and for personalisation
10 minutes
SM
Used by Microsoft in synchronizing the MUID across multiple Microsoft domains to track users for advertising.
session
MUID
Identifies unique web browsers visiting Microsoft sites. These cookies are used for advertising, site analytics, and other operational purposes.
1 year
Toggle DoubleClick/Google MarketingDoubleClick/Google Marketing
A comprehensive digital advertising platform for managing campaigns, optimizing performance, and analyzing audience data.
Name
Description
Duration
IDE
This cookie is used for targeting, analyzing and optimisation of ad campaigns in DoubleClick/Google Marketing Suite
2 years
ar_debug
Store and track conversions
Persistent
Toggle LinkedInLinkedIn
LinkedIn is a professional networking platform for job seekers, employers, and industry connections.
Name
Description
Duration
bscookie
Used by LinkedIn to track the use of embedded services.
1 year
AnalyticsSyncHistory
Used to store information about the time a sync with the lms_analytics cookie took place for users in the Designated Countries
30 days
bcookie
Used by LinkedIn to track the use of embedded services.
1 year
li_sugr
Used to make a probabilistic match of a user's identity outside the Designated Countries
90 days
lidc
Used by the social networking service, LinkedIn, for tracking the use of embedded services.
1 day
UserMatchHistory
Used by LinkedIn Ads to synchronize and match user IDs across different ad networks and data providers.
30 days
Toggle LinkedIn InsightLinkedIn Insight
LinkedIn Insight is a web analytics service that tracks and reports website traffic.
Service URL: www.linkedin.com (opens in a new window)
Name
Description
Duration
li_sugr
Used to make a probabilistic match of a user's identity.
90 days
lidc
Used for routing and session management.
24 hours
Toggle LiveIntentLiveIntent
LiveIntent provides a platform for email advertising and identity-driven marketing solutions.
Name
Description
Duration
_lc2_fpi_js
Companion cookie to _lc2_fpi used by JavaScript to facilitate cross-domain ad tracking and user identification.
1 year
_lc2_fpi
First-party tracking cookie usually associated with LiveRamp to identify users across devices for targeted advertising.
1 Year
_li_ss
Sets a unique ID for the visitor, that allows third party advertisers to target the visitor with relevant advertisement. This pairing service is provided by third party advertisement hubs, which facilitates real-time bidding for advertisers.
1 month
lidid
Collects data on visitors' behaviour and interaction - This is used to make advertisement on the website more relevant. The cookie also allows the website to detect any referrals from other websites.
2 years
Toggle Cookie PolicyCookie Policy
You can find more information in our Privacy Policy.
Allow AllDecline All
Accept





