Closed JohnMidity closed 8 years ago
This is a limitation of WordPress and how it parses for shortcodes. You are unable to nest shortcodes of the same name within each other.
What about supporting nested accordions with another name? Such as with the compatibility mode prefix already supported? (e.g. [as-accordion]) I only need to add a second level - is there really no way around this?
Technically it could be possible to add additional shortcodes with different names that would support this, but it would add considerable complexity to the plugin. I also wound not recommend it from a UX perspective.
This plugin is not meant to solve all problems that all users have. If you really need nesting of accordions I suggest looking into other plugins.
An accordion inside an accordion item does not work.
This results in a stray
[/accordion-item] [/accordion]
on the page and a badly working accordion.