Result

Demo: Twitter Bootstrap Collapse Shortcode

There are 2 shortcodes needed to achieve the Twitter Bootstrap Collapse component. You need to nest these shortcodes – i.e. you place one inside the other. The parent shortcode is: [TBS_COLLAPSE]

The shortcode that goes inside this is: [TBS_COLLAPSE_GROUP]

(Perhaps the naming convention here is backwards, but it more closely follows Twitter Bootstrap naming conventions so you can correlate with the documentation easier)

Shortcode: [TBS_COLLAPSE accordion='y']
[TBS_COLLAPSE_GROUP title="Click Me Title #1" open='n']The hidden content for title #1[/TBS_COLLAPSE_GROUP]
[TBS_COLLAPSE_GROUP title="Click Me Title #2" open='n']The content for title #2. Because open=’y’ when the page loads, I show automatically.[/TBS_COLLAPSE_GROUP]
[/TBS_COLLAPSE]