Attributes
Create customised
block UIs with ease.
Blockstudio provides you with all the necessary tools to create powerful fieldsets for your blocks. Group fields, set conditions, disable fields and populate options using capable filters.
{ "name": "marketing/cta", "title": "CTA", "description": "Custom Call to Action block.", "blockstudio": { "attributes": [ { "id": "title", "type": "text", "label": "Text" }, { "id": "buttonToggle", "type": "toggle", "label": "Add Button?" }, { "id": "button", "type": "link", "label": "Button", "conditions": [ [ { "id": "buttonToggle", "operator": "==", "value": true } ] ] } ] } }
Copy
Features
All field related features at a glance.
Conditional logic
Show fields based on values of other fields or global conditions like post type.
Disabling
Temporarily disable fields for blocks while keeping their values saved to the post.
Populating
Query data from Posts, Users or Terms directly from JSON with additional work.
Filtering
Easily filter block attributes when rendering them in the frontend or during insertion.
Purchase