Title: Nested shortcodes syntax problem
Last modified: August 21, 2016

---

# Nested shortcodes syntax problem

 *  [TheLendingJourney](https://wordpress.org/support/users/thelendingjourney/)
 * (@thelendingjourney)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/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!
 * [https://wordpress.org/plugins/shortcodes-ultimate/](https://wordpress.org/plugins/shortcodes-ultimate/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [TJ Kelly](https://wordpress.org/support/users/tjkelly/)
 * (@tjkelly)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/nested-shortcodes-syntax-problem/#post-5074044)
 * +1 to this. I’m unwilling to comment out my balance tags filter, so I’m stuck
   without the ability to nest columns. Would LOVE to see a solution posted here!
 *  [wndrdog](https://wordpress.org/support/users/wndrdog/)
 * (@wndrdog)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/nested-shortcodes-syntax-problem/#post-5074069)
 * um, YES PLEASE … not very savvy in PHP and would really just like this to work
   as advertised in CSS only. thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Nested shortcodes syntax problem’ is closed to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [WP Shortcodes Plugin — Shortcodes Ultimate](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [wndrdog](https://wordpress.org/support/users/wndrdog/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/nested-shortcodes-syntax-problem/#post-5074069)
 * Status: not resolved