[memb_smartblock]

Description

Renders a SmartBlock, a reusable content block stored as a torii_smart_block post. The generic form selects the block via the blockid attribute. See SmartBlocks for the full picture: creating blocks, attribute tokens, and nesting.

SmartBlock content supports token placeholders that are substituted from shortcode attributes at render time:

  • {{atts:key}} or {{atts|key}}, replaced with the attribute value
  • Unreplaced tokens are removed from the output.

Embedded PHP in the block is evaluated and standard WordPress content filters are applied.

Shortcode Examples

[memb_smartblock blockid="footer_cta"]

With attribute substitution:

[memb_smartblock blockid="greeting"]{{atts:name}}[/memb_smartblock]

Shortcode Parameters

blockid

Slug of the SmartBlock post to render.

Shortcode Attributes

Attribute Value
Conditional No
Nestable No
Accepts formatting No