Support » Plugin: Shortcoder — Create Shortcodes for Anything » Nested shortcodes don’t work

  • Resolved brunoairam

    (@brunoairam)


    Hi there,

    I have this shortcode:

    [sc name=”MMB – Les couleurs – 03″]

    Which is basically the only content of a lesson custom post (we have a Learning Management System).
    And this is the content of the shortcode:

    [vc_row][vc_column][vc_message color="info" message_box_style="solid-icon"][sc name="Age mini activite"]
    <br>
    <p style="text-align: center;"><strong>2 ans ½ </strong></p>
    [/vc_message][/vc_column][/vc_row]
    [vc_row][vc_column][mk_ornamental_title font_family="none" font_size="20" ornament_style="rovi-double" ornament_color="#a4d65e"]Objectifs de l'activité[/mk_ornamental_title][/vc_column][/vc_row][vc_row][vc_column][vc_column_text css=".vc_custom_1537456604162{margin-bottom: 0px !important;}"]<img class="size-full wp-image-5449 aligncenter" src="https://www.formationairammontessori.com/wp-content/uploads/2015/12/image-1ere-boite-de-couleur-site.png" alt="image-1ere-boite-de-couleur-site" width="175" height="185" />[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column][vc_video link="https://soundcloud.com/user-763505726/mmb-boites-de-couleurs-intro-01/s-waCXk" el_class="soundcloud"][/vc_column][/vc_row][vc_row][vc_column][vc_column_text css=".vc_custom_1541430666068{margin-bottom: 0px !important;}"]<em>Lors de votre présentation de la première boîte des couleurs, vous pourrez choisir de nommer ou non, les couleurs. </em>
    
    <em>L'idée dans un premier temps est de permettre le développement du sens visuel chromatique. L’enfant devra simplement répéter après l’adulte le nom des couleurs en effectuant les mises en paires des tablettes/plaquettes. Donc une leçon en 3 temps pour cette première présentation n'est pas systématique.</em>[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column][vc_zigzag color="custom" el_width="30" css=".vc_custom_1511795125182{margin-top: 40px !important;margin-bottom: 40px !important;}" custom_color="#a7da36"][mk_ornamental_title font_family="none" font_size="20" ornament_style="rovi-double" ornament_color="#a4d65e"]La première boite de couleurs[/mk_ornamental_title][/vc_column][/vc_row][vc_row][vc_column][vc_video link="https://soundcloud.com/user-763505726/boite-de-couleurs-mmb-02-new/s-Em5j2" el_class="soundcloud"][/vc_column][/vc_row]

    You can see it uses WPBakery Visual Composer. It works great as is. I use shortcoder version 4.6. You can also notice there’s a shortcoder shortcode in this content at the top: [sc name=”Age mini activite”]. Again, works perfectly fine with the 4.6 version.

    But since 5.0 version, every time there’s a new shortcoder release I attempt to upgrade. Every time I’m disappointed to notice the nested shortcode no longer works. Meaning:

    The [sc name=”Age mini activite”] is just blank on the front-end.

    So every time I roll back to the 4.6 shortcoder version :(. Are you planning to make the new shortcoder version compatible with nested shortcodes?

    Thanks a lot for this great plugin which was very useful up to 4.6 version for us ;)!

    Bruno

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author vaakash

    (@vaakash)

    Hi @brunoairam,

    Sorry for the late reply.

    In version 5.0+ the shortcode content can have another “shortcoder shortcode” there is no restriction.

    Instead of [sc name="Age mini activite"] can you please copy the shortcode from the admin GUI and paste it ? it should be something like this with hyphens [sc name="age-mini-activite"]

    In v5.0 all shortcodes with spaces are migrated to ones with hypens. But it is not necessary to make this change, shortcoder will automatically pick the old shortcode even though you have used name without quotes. But you can give a try manually.

    Please let me know how it goes.

    Thanks,
    Aakash

    Hi,
    I have a big problem with this change of supporting no spaces. I use the Plugin ADRotate Pro, and it creates shortcodes like this: [adrotate group=”5″]

    I nest these shortcodes in other shortcodes from your plugin. But this does not work anymore and It’s not possible to change the adrotate shortcodes.

    It does kill most of my pages content, because when such a shortcode is displayed, the rest of the content of the page is missing.

    Is there a way to support spaces again or downgrade temporary?

    best regards
    Patrick

    Hi,
    sorry, I was wrong. It was not this problem. But there is something broken with shortcodes on my site. Even when I disable a specific shortcode, it breaks the flow of my page content and the rest of the text after the shortcode is not displayed anymore. I have no idea what the problem is. Can you help me please?

    Thanks,
    Patrick

    Plugin Author vaakash

    (@vaakash)

    Hi Patrick,

    There shouldn’t be any need to downgrade.

    Can you please share a screenshot of post content and point me out what is not working ?
    Please do share a screenshot of Shortcode content of necessary.

    Thanks,
    Aakash

    Hi Aakash,
    This is really strange. Today I checked again and everything was good. But yesterday it was not (different Browsers, Devices, ets.) I can’t reproduce the problem today. So everything is good. 🙂 Thanks and sorry,
    Patrick

    Plugin Author vaakash

    (@vaakash)

    Cheers ! NP.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.