Nested shortcodes syntax problem
-
Hi,
The nested shortcodes syntax is a great idea. An underscore before each one and I can have spoilers within spoilers! Beautiful.
But there’s a problem. WordPress, at least the version I’m using, doesn’t recognize an underscore followed by a backslash as an actual closing tag. So it throws some closing tags of its own at the root level, screwing up the shortcodes.
I was able to fix this by going to my default-filters.php file and commenting out the “balance tags” filter. And I’ll make a plugin to do that so it survives WP updates.
Now it works perfectly.
But maybe you should change the syntax? What if the underscore came after the backslash, so that WP recognized it as a closing tag?
Thanks!
- The topic ‘Nested shortcodes syntax problem’ is closed to new replies.