Title: nested spoiler issue
Last modified: August 22, 2016

---

# nested spoiler issue

 *  [chisss](https://wordpress.org/support/users/chisss/)
 * (@chisss)
 * [11 years ago](https://wordpress.org/support/topic/nested-spoiler-issue/)
 * Hello,
    I am having an issue where the nested spoiler caption only displays the
   first part of the caption. For example: + Title + Sub Title
 * What happens is the “Sub Title” gets cut off so it displays like this:
    +Title
   +”Sub
 * This is the shortcode I am using:
    [su_spoiler title=”Clinical Equipment and 
   Supplies” style=”fancy”]
 * [_su_spoiler title=”Clinical Equipment and Supplies”][su_frame]
 * [/su_frame][_/su_spoiler]
 * So it displays
    +Clinical Equipment and Supplies +”Clinical
 * Any ideas? it even puts the quotes at the begining…
 * [https://wordpress.org/plugins/shortcodes-ultimate/](https://wordpress.org/plugins/shortcodes-ultimate/)

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

 *  [pixelaid](https://wordpress.org/support/users/pixelaid/)
 * (@pixelaid)
 * [11 years ago](https://wordpress.org/support/topic/nested-spoiler-issue/#post-5941419)
 * I am having the same issue since updating to 4.9.4
 * It seems to cut of the rest of the title as soon as there is a space.
 * For example, one title is:
    [_su_spoiler title=”Edmonton City Hall”] [_/su_spoiler]
   This displays as + “Edmonton
 * If I change it to:
    [_su_spoiler title=”EdmontonCity Hall”] [_/su_spoiler] This
   displays as + “EdmontonCity
 *  [pixelaid](https://wordpress.org/support/users/pixelaid/)
 * (@pixelaid)
 * [11 years ago](https://wordpress.org/support/topic/nested-spoiler-issue/#post-5941422)
 * Update:
 * Here is the link to the problem page:
    [http://www.daysinn-downtownedmonton.com/local-area/](http://www.daysinn-downtownedmonton.com/local-area/)
 * Under “Maps to Local Attractions” you can see that I had to insert hyphens and
   dashes between words. Spaces seem to cause the problem.
 * Under “Maps to Area Restaurants” the title stops when it reads a space.
 * Hope this helps.
    _(if this thread does not get resolved, you might notice that
   all the nested spoilers have hyphens between words. I cannot leave it like that
   because it is a live website and the titles are useless if they are cut off)_
 *  Thread Starter [chisss](https://wordpress.org/support/users/chisss/)
 * (@chisss)
 * [11 years ago](https://wordpress.org/support/topic/nested-spoiler-issue/#post-5941425)
 * Yep, that’s the exact same thing. Mine is an internal site so I can’t link to
   it but that’s exactly what happens.
 * I hope this can get fixed soon!
 *  [pejhab](https://wordpress.org/support/users/pejhab/)
 * (@pejhab)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/nested-spoiler-issue/#post-5941537)
 * Hello,
 * I have the same exact problem using Version 4.9.8 of the plugin.
 * Has anybody managed to solve the problem?
 * If so, could you share it with us please?
 *  [madcowone](https://wordpress.org/support/users/madcowone/)
 * (@madcowone)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/nested-spoiler-issue/#post-5941538)
 * Can you try the following please:
 *     ```
       [su_spoiler title="Title" style="fancy"]
       Here we have the content for Title
       [su_spoiler title="1 Sub Title" style="fancy"]
       Here we have the content for 1 Sub Title
       [su_spoiler title="2 Sub Title" style="fancy"]
       Here we have the content for 2 Sub Title
       [su_spoiler title="3 Sub Title" style="fancy"]
       Here we have the content for 3 Sub Title
       [su_spoiler title="4 Sub Title" style="fancy"]
       Here we have the content for 4 Sub Title
       [____/su_spoiler]
       [su_spoiler title="5 Sub Title" style="fancy"]
       Here we have the content for 5 Sub Title
       [____/su_spoiler]
       [___/su_spoiler]
       [__/su_spoiler]
       [_/su_spoiler]
       [/su_spoiler]
       ```
   
 *  [pejhab](https://wordpress.org/support/users/pejhab/)
 * (@pejhab)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/nested-spoiler-issue/#post-5941539)
 * @ madcowone
 * Thank you for your suggestion. Your code does work. However, what I need includes
   putting several accordions inside a spoiler. I tried to apply your technique 
   but it doesn’t work.
 * Here is my code: (It gives you two accordions inside a spoiler, but the accordion
   titles don’t show.)
 *     ```
       [su_spoiler title="A rather long title" style="fancy"]
       Here we have the content for the rather long title
       [su_accordion "This is the first accordion's title"]
       We are inside the first accordion
       [su_spoiler title="first accordion's first item"]
       Here we have the content for the first accordion's first item
       [_/su_spoiler]
       [su_spoiler title="first accordion's second item"]
       Here we have the content for the first accordion's second item
       [_/su_spoiler]
       [/su_accordion]
       [su_accordion "This is the second accordion's title"]
       We are inside the second accordion
       [su_spoiler title="second accordion's first item"]
       Here we have the content for the second accordion's first item
       [_/su_spoiler]
       [su_spoiler title="second accordion's second item"]
       Here we have the content for the second accordion's second item
       [_/su_spoiler]
       [/su_accordion]
       [/su_spoiler]
       ```
   
 *  [madcowone](https://wordpress.org/support/users/madcowone/)
 * (@madcowone)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/nested-spoiler-issue/#post-5941540)
 * I don’t think that the accordion is meant to have a title. I think that the accordion
   here is to bind the spoilers together so when one opens the other that is allready
   open will close.
 * Can you try this and let me know please
 *     ```
       [su_spoiler title="Spoiler title 1" style="fancy"]
       [su_accordion]
         [su_spoiler title="Spoiler title 1" style="fancy"] Spoiler content [_/su_spoiler]
         [su_spoiler title="Spoiler title 2" style="fancy"] Spoiler content [_/su_spoiler]
         [su_spoiler title="Spoiler title 3" style="fancy"] Spoiler content [_/su_spoiler]
       [/su_accordion]
       [/su_spoiler]
       [su_spoiler title="Spoiler title 2" style="fancy"]
       [su_accordion]
         [su_spoiler title="Spoiler title 1" style="fancy"] Spoiler content [_/su_spoiler]
         [su_spoiler title="Spoiler title 2" style="fancy"] Spoiler content [_/su_spoiler]
         [su_spoiler title="Spoiler title 3" style="fancy"] Spoiler content [_/su_spoiler]
       [/su_accordion]
       [/su_spoiler]
       ```
   
 *  [pejhab](https://wordpress.org/support/users/pejhab/)
 * (@pejhab)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/nested-spoiler-issue/#post-5941541)
 * [@madcowone](https://wordpress.org/support/users/madcowone/)
 * Thank you very much for pointing us in the right direction. Drawing on your approach
   I have finally managed to achieve the effect I wanted.
 * Here it is:
 *     ```
       [su_spoiler title="The main spoiler title" style="fancy"]
   
       [su_accordion]
   
       [su_spoiler title="This serves as the title for the first accordion" style="fancy"]
       [su_accordion]
         [su_spoiler title="The first accordion's first item's title"]The first accordion's first item's content[__/su_spoiler]
         [su_spoiler title="The first accordion's second item's title"]The first accordion's second item's content[__/su_spoiler]
         [su_spoiler title="The first accordion's third item's title"]The first accordion's third item's content[__/su_spoiler]
       [__/su_accordion]
       [_/su_spoiler]
   
       [su_spoiler title="This serves as the title of the second accordion" style="fancy"]
       [su_accordion]
         [su_spoiler title="The second accordion's first item's title"]The second accordion's first item's content[__/su_spoiler]
         [su_spoiler title="The second accordion's second item's title"]The second accordion's second item's content[__/su_spoiler]
         [su_spoiler title="The second accordion's third item's title"]The second accordion's third item's content[__/su_spoiler]
       [__/su_accordion]
       [_/su_spoiler]
   
       [/su_accordion]
   
       [/su_spoiler]
       ```
   
 * Have a good day everybody! 🙂

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

The topic ‘nested spoiler issue’ 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/)

 * 8 replies
 * 4 participants
 * Last reply from: [pejhab](https://wordpress.org/support/users/pejhab/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/nested-spoiler-issue/#post-5941541)
 * Status: not resolved