Skip to main content

i4w_set

Usage

This shortcode is used to set a variable with a given value. This variable will then be "remembered" while shortcodes are processed for a given post, page or widget.

[ELSE_set] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
variable name=valueThe variable that you wish to define and the corresponding value that should be assigned to it.NoneYes

Example

Shortcode
[i4w_set myVariable='12345']

While the "current" page/post is being rendered, this variable (its assigned value) can be queried/fetched into other shortcodes, page content, etc, by using: {:myVariable:}