• Hi! Thanks for the great plugin. Been using it for the longest time.

    Biggest issue I’ve had with this plugin is that some of the shortcodes don’t allow nesting. For example if I’d like to create a button with a tooltip, I can’t simply do:

    [tooltip title="This is the content." placement="right"][button]Click Here??[/button][/tooltip]

    This would display a button shortcode html encoded on the page, not the actual button as expected.

    I know this is an easy fix. Could you please include this feature in a new update?

    All the best,
    Antti

    https://www.ads-software.com/plugins/bootstrap-3-shortcodes/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author MWDelaney

    (@foolsrun)

    Hi, Antti,
    The next version of Bootstrap Shortcodes for WordPress should make this kind of nesting a little more reliable.

    If you’re interested, you can grab the latest development version of the plugin, which should include the functionality you’re looking for, from GitHub here:

    https://github.com/filipstefansson/bootstrap-3-shortcodes

    B C

    (@thedigitalengine)

    Echo, thanks for the plugin, much appreciated.

    Does the support for listing mean I might be able to nest containers (e.g. to have a full width grey background, then a centred 12 col container), like:

    [container fluid="true" xclass="background-grey"]
    [container]
    [row]
    [column md="12"]
    <h2>Most popular</h2>
    [/column]
    [/row]
    [/container]
    [/container]

    At the moment I have to remove the one of the containers and do this:

    <div class="container-fluid background-grey">
    [container]
    [row]
    [column md="12"]
    <h2>Most popular</h2>
    [/column]
    [/row]
    [/container]
    </div>
    Plugin Author MWDelaney

    (@foolsrun)

    No, unfortunately you cannot nest shortcodes of the same name. This is a limitation of WordPress itself, not of this plugin specifically

    https://codex.www.ads-software.com/Shortcode_API#Nested_Shortcodes

    Will Bootstrap Shortcodes support nested shortcodes?

    [row]
        [column md="6"]
            Lorem ipsum dolor sit amet
        [/column]
        [column md="6"]
            [row-a]
                [column-b md="6"]
                    Lorem ipsum dolor sit amet
                [/column-b]
                [column-b md="6"]
                    Lorem ipsum dolor sit amet
                [/column-b]
            [/row-a]
        [/column]
    [/row]
    Plugin Author MWDelaney

    (@foolsrun)

    Please see the previous answer. This plugin does not support nested shortcodes of the same name because WordPress does not support it. We cannot add this support until WordPress adds it themselves.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Nesting shortcodes’ is closed to new replies.