Basic example
[%su_box title="This is a box with nested spoilers"]
[%su_spoiler title="Spoiler title"] Spoiler content [/%su_spoiler]
[%su_spoiler title="Spoiler title"] Spoiler content [/%su_spoiler]
[%su_spoiler title="Spoiler title"] Spoiler content [/%su_spoiler]
[/%su_box]
-----
The same nested shortcodes
[%su_spoiler title="Click me to see nested spoilers" style="fancy"]
[_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
[_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
[_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
[/%su_spoiler]
-----
The same nested shortcodes mixed with other shortcodes
[%su_spoiler title="Click me to see nested accordion" style="fancy"]
[%su_accordion]
[_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
[_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
[_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
[/%su_accordion]
[/%su_spoiler]
-----
Shortcodes inside of attributes
To use shortcodes inside of attributes you need to replace square brackets with {
and }
. Open code to see example
[%su_button url="{shortcode attribute='value'}"] Button [/%su_button]