One thing that may be confusing about this section is distinguishing the difference between “Toggles” and an “Accordion” — So, let’s clear that up first. A toggle essentially allows you to hide a piece of content and let the user open and close it. You can stack many of these toggles in a row for a nice way of organizing content in your page or post. Then, in addition to that you can wrap your set of toggles with the “accordion” shortcode to group them together. This means that your set of toggles will now take on the traditional accordion concept of only allowing one toggle open at any given time.
[toggle title="Toggle #1"]Content of toggle #1.[/toggle]
[toggle title="Toggle #2"]Content of toggle #2.[/toggle]
[toggle title="Toggle #3" last]Content of toggle #3.[/toggle]
Note: If this is a group of toggles that aren’t wrapped in an accordion, as the above example above shows, you can use the word “last” on the last toggle to the theme can apply some margin below the last toggle to separate from any content to come after. This is optional.
Title of the toggle.
So now that you’ve got a set of toggles, what if you want to group them together as a traditional accordion? You can do this simply wrapping your toggles in the [accordion] shortcode.