Helps choose or debug Bricks dynamic-data tags, modifiers, and post/loop context. Covers 8 built-in providers (ACF, WooCommerce, CMB2, JetEngine, Pods, Toolset, MetaBox) and tag syntax.
Ships in bricks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Dynamic data tags are Bricks' {token} syntax for binding content to live values. They resolve at render time, bind to the current post/term/user/loop context, and support modifier chains. Getting the syntax, scope, and modifier order wrong is how most "why doesn't this show?" tickets start.
Files at includes/integrations/dynamic-data/providers/provider-*.php.
| Provider | File | Activation | Tag prefix / pattern |
|---|---|---|---|
| WordPress core | provider-wp.php:12 | Always | {post_*}, {wp_user_*}, {author_*}, {site_*}, {archive_*}, {term_*}, {featured_image}, {cf_meta_key}, {echo:...} |
| ACF | provider-acf.php:6 | ACF installed | {acf_fieldname} or the field group's returned tag (ACF field name, typically) |
| WooCommerce | provider-woo.php:8 | Woo installed | {woo_product_type}, {woo_product_price}, {woo_product_sale_price}, {woo_product_stock}, etc. |
| CMB2 | provider-cmb2.php:6 | CMB2 installed | {cmb2_fieldname} |
| JetEngine | provider-jetengine.php:6 | JetEngine installed | {je_fieldname} |
| Pods | provider-pods.php:6 | Pods installed | {pods_fieldname} |
| Toolset | provider-toolset.php:6 | Toolset installed | {ts_fieldname} |
| MetaBox | provider-metabox.php:6 | MetaBox installed | {mb_fieldname} |
Don't trust a tag prefix blindly: and don't guess. ACF field names are whatever the field was named in WP Admin; there is no reliable naming convention. {acf_event_date} and {acf_start_date} look equally plausible and only one will resolve. The only way to know is to look.
Required lookup before writing any provider-specific tag:
bricks/list-dynamic-data-tags with a postId from the target post type (for example, a product, event, project, or other custom post type). The response is scoped: ACF groups only appear for posts the group is assigned to.tag string.bricks/preview-dynamic-tag with that tag and the same postId. If unknownTags is non-empty, the tag doesn't exist: go back to step 2.Skipping this and guessing produces silently-broken templates: the tag renders as literal {acf_start_date} text in production with no error.
{tag_name}
{tag_name:modifier}
{tag_name:modifier:arg}
{tag_name:modifier1:arg:modifier2:arg}
The colon (:) separates tag name from modifier, modifier from argument, and chained modifiers. Confirmed at includes/integrations/dynamic-data/providers/base.php:174-239.
Older | pipe syntax: exists for one specific case: subkey access inside array_value:
{custom_field:array_value|first_name}
The pipe is not a general-purpose modifier separator: it's an array_value subkey accessor. Everything else is colon. {post_title|format} will not work.
base.php)| Modifier | Purpose | Example |
|---|---|---|
| date format string | Format a date/time value | {post_date:M j, Y} |
:format | Keep HTML formatting for text values | {post_excerpt:format} |
:plain | Strip HTML | {post_excerpt:plain} |
:raw | No processing | {cf_featured_image:raw} |
:url | Value interpreted as URL | {cf_link_field:url} |
:value | Raw stored value (for fields with display/value pair) | {acf_select:value} |
:array_value|key (ACF/Meta) | Pull one key from an array return value | {acf_link_field:array_value|title} |
:label (Bricks 2.5+) | Selected option's display label instead of its stored key, for supported choice/status tags | {post_type:label}, {woo_product_stock_status:label} |
:label works only for supported tags: JetEngine select/radio/checkbox; ACF select/radio/checkbox/button_group/true_false; Meta Box choice fields; post_type, wp_user_role, woo_product_type, woo_product_stock_status and woo_order_status. Generic cf_* meta, CMB2, Pods and Toolset do not support it; there label stays a literal argument. :value wins over :label, and :raw and :array_value|key take precedence. A missing label falls back to the stored key. Preview the tag before saving.
Modifiers are parsed into provider-specific filters; do not assume arbitrary left-to-right function composition. Verify the intended combination. Positional date formats are stored as the parser's default meta_key, while known flags such as :plain, :raw, and :array_value|key set named filter keys (includes/integrations/dynamic-data/providers/base.php:131-243).
Dynamic tags bind to the current context, which rebinds inside loops:
Writing {post_title} inside a Users loop gives you the outer page's post title, not the user's display name. Use the provider-specific tag: {wp_user_display_name}.
Full loop-tag cheatsheet in the bricks-query-loops skill.
{cf_meta_key}Generic WP custom-field access uses the cf_ prefix:
{cf_my_custom_key} -> the meta value
{cf_my_custom_key:raw} -> unprocessed
{cf_date_field:format:M j, Y} -> formatted
provider-wp.php registers known cf_ tags in the builder picker from site meta keys, but render also treats any tag beginning with cf_ as post meta. The meta key is the part after cf_.
bricks/dynamic_data/allowed_keys does not gate post meta. It controls parser keys such as @fallback, @sanitize, @key, @date, @from, and @to.
{echo:function_name(arg1, arg2)} calls a PHP function at render time. Full threat model in the bricks-custom-code skill. Short version:
bricks/code/echo_function_names allow-list.bricks_execute_code; on normal frontend renders, the saved tag runs for visitors if global execution is enabled and the function is allow-listed.Never return true from the allow-list in production: pre-1.9.7 RCE surface.
{acf_fieldname} (uses ACF's field name, not label).:array_value| pattern or a loop:
{acf_my_rel}".{post_title} inside binds to the current related post.list-query-types and use the actual field-specific objectType. The outer display tag can return a row count; it is not automatically an Array-loop source. Use bricks-query-loops for row/subfield context. Reserve Array loops for a supported source that returns parseable array data.Product tags resolve inside a product context: single product page, product-loop iteration, or an MCP preview call that passes a product postId. Cart tags such as {woo_cart_items_count} use the cart context instead; do not require a product loop for them. The dynamic-data parser itself does not support a post_id argument inside the tag.
{woo_product_price} includes currency symbol.{woo_product_price:value} returns numeric only.{woo_product_sale_price}: empty if not on sale (use conditional display).Tags are registered lazily: they need the plugin's init hook to fire before they're available. In the builder: appear in the picker. On the frontend: depend on plugin load order. If a tag exists in builder picker but renders empty, check plugin-init priority.
Dynamic data supports parser keys after the tag, such as @fallback, @sanitize, and @key for supported tags. It does not support arbitrary @post_id, @term_id, or @user_id context overrides in the current parser. To preview or render against a specific post through MCP, pass the postId parameter to preview-dynamic-tag or render inside the correct loop/context.
For custom tags, use bricks/dynamic_tags_list to expose the tag in the picker and bricks/dynamic_data/render_tag to render it. The internal provider registry is filtered through bricks/dynamic_data/register_providers, while bricks/dynamic_data/register_hook only changes the WP hook Bricks uses for provider registration (includes/init.php:174-182, includes/integrations/dynamic-data/providers.php:97-106).
See the bricks-custom-dynamic-data-providers skill for the full pattern.
[render_dynamic_data] shortcodeSometimes you need Bricks-style dynamic data outside Bricks templates: in a widget, or shortcode-placement area.
[render_dynamic_data content="Hello {user_display_name}, welcome to {site_title}."]
Use this helper to render Bricks dynamic data in custom PHP output.
Before pasting a dynamic tag into a template setting via update-element, validate it with preview-dynamic-tag:
preview-dynamic-tag (tag: "{acf_my_field:plain}", postId: 42, context: "text")
-> { rendered, isEmpty, unknownTags: [] }
The response includes:
rendered: actual rendered string (or array for image/link contexts).isEmpty: true when the rendered value is empty after trim.unknownTags: tag names that no provider recognized; non-empty means the tag will render as literal text in production. Treat any entry here as a hard failure: fix the tag name (use list-dynamic-data-tags to discover the right one) before writing.Use this for unfamiliar expressions in a representative post context. It cannot simulate an arbitrary term/user/ACF loop row; verify those in the actual loop. Empty output can be valid missing data or a context mismatch. Reuse established evidence for unchanged expressions instead of repeating every preview.
Tag renders as literal {post_title} in output?
a. Provider not loaded yet (plugin init order). Check the tag in the builder picker: if absent there, provider not registered.
b. Typo in tag name. Picker is authoritative: or call list-dynamic-data-tags and grep the result.
c. Context doesn't support the tag (e.g., {post_title} on a term archive page without a loop).
d. preview-dynamic-tag for the same tag/post returns the tag in unknownTags: confirms (a) or (b).
Tag resolves empty on the frontend, fine in builder?
a. Builder preview uses a fallback post. Frontend may have no equivalent context.
b. The field is not assigned to the current post/context, or the provider resolved an empty value.
c. {echo:...} is not allow-listed, global code execution is off, or a builder preview user lacks bricks_execute_code.
Date modifier doesn't format?
a. Use the date-format syntax supported by that tag; {post_date:M j, Y} is valid. :format preserves HTML for text and is not a required date-format prefix.
b. The stored value isn't a date parseable by strtotime. Check raw value first.
ACF Relationship field shows post id, not title?
a. You're using {acf_rel} directly: that's the raw post id array. Wrap in a Posts loop or use :array_value| patterns.
Loop-scope tag wrong: shows outer page data? a. You're using a Posts-loop tag inside a Users loop (or vice versa). Use provider-specific tags.
Tag works on one page, not another? a. Plugin provider not active on that page (rare: plugin scope usually global). b. Post type doesn't have the field assigned (ACF field group scope).
: and | as if they're interchangeable. Colon is the separator; pipe is only for array_value|key.{post_title} inside a Users loop to give you the user's name. Use {wp_user_display_name}.{echo:...} as a general-purpose function caller without seeing the bricks-custom-code skill first: echo is a security surface.bricks/dynamic_data/allowed_keys protects post meta. It only controls parser keys; avoid exposing sensitive meta through cf_ tags or custom providers.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/bricks:bricks-dynamic-datafrom bricks
npx claudepluginhub codeerhq/bricks-skills --plugin bricks46 skills in this plugin
/bricks-agent-repositoryHandle complex existing-site Bricks edits through advertised repository/workspace workflows when focused abilities cannot express the change./bricks-ai-tabDiagnose Bricks AI connection setup, ability toggles, dispatcher availability and disabled actions. Use for connection/availability problems./bricks-audit-design-systemAudit Bricks classes, variables, palettes and components, or carry out requested cleanup. Report-only audits do not authorize fixes.Other plugins' skills for the same job