Basic example

[box title=”This is a box with nested spoilers”][spoiler title=”Spoiler title”] Spoiler content [/spoiler][spoiler title=”Spoiler title”] Spoiler content [/spoiler][spoiler title=”Spoiler title”] Spoiler content [/spoiler][/box]

The same nested shortcodes

[spoiler title=”Click me to see nested spoilers” style=”fancy”][_spoiler title=”Spoiler title”] Spoiler content [_/spoiler][_spoiler title=”Spoiler title”] Spoiler content [_/spoiler][_spoiler title=”Spoiler title”] Spoiler content [_/spoiler][/spoiler]

The same nested shortcodes mixed with other shortcodes

[spoiler title=”Click me to see nested accordion” style=”fancy”][accordion][_spoiler title=”Spoiler title”] Spoiler content [_/spoiler][_spoiler title=”Spoiler title”] Spoiler content [_/spoiler][_spoiler title=”Spoiler title”] Spoiler content [_/spoiler][/accordion][/spoiler]

Basic example

[[box title="This is a box with nested spoilers"]
  [spoiler title="Spoiler title"] Spoiler content [/spoiler]
  [spoiler title="Spoiler title"] Spoiler content [/spoiler]
  [spoiler title="Spoiler title"] Spoiler content [/spoiler]
[/box]]

The same nested shortcodes

[[spoiler title="Click me to see nested spoilers" style="fancy"]
  [_spoiler title="Spoiler title"] Spoiler content [_/spoiler]
  [_spoiler title="Spoiler title"] Spoiler content [_/spoiler]
  [_spoiler title="Spoiler title"] Spoiler content [_/spoiler]
[/spoiler]]

The same nested shortcodes mixed with other shortcodes

[[spoiler title="Click me to see nested accordion" style="fancy"]
  [accordion]
    [_spoiler title="Spoiler title"] Spoiler content [_/spoiler]
    [_spoiler title="Spoiler title"] Spoiler content [_/spoiler]
    [_spoiler title="Spoiler title"] Spoiler content [_/spoiler]
  [/accordion]]
[/spoiler]]

Leave a Reply