Accordion Menu Shortcode
Summary
Display content in an accordion menu. This is actually done with two shortcodes - an outer wrapper tag and an inner tag for each section:
[accordions]
[accordion_section title=One]
some content
[/accordion_section]
[accordion_section title=Two]
some more content
[/accordion_section]
[accordion_section title=Three]
some different content
[/accordion_section]
[/accordions]
Â
Required Attributes
accordions (outer tag)
none
accordion_section (inner tag)
title
The heading text for the accordion panel.
Optional Attributes
accordions (outer tag)
compact
Setting compact=1 changes the style of the accordion menu to the "simple toggle" style
showall
Setting showall=1 adds "open all" and "close all" buttons above the accordion menu, for opening or closing all panels at once.
parent_id
Set a specific ID value for the Accordion Menu. (Unless you already have a reason why you need to do this, you don't need to do this).Â
accordion_section (inner tag)
anchor
Use a specific anchor value for the accordion panel.
desc
Display a custom description for the feed (rather than the one the feed provides).
Usage / Examples
Â