• Hello, I have a plug-in that creates a shortcode which I place in my wordpress website for rotating ads.

    The developer has just stumbled upon a problem where it stops working because the shortcode it seems is inside another shortcode. In this case, I have tabs.

    Is this a major issue, or is there an easy work around? It goes something like this…
    (I’ve abbreviated the shortcode as it contains information from other companies I don’t have the right to publish here, and of course, there is loads of other stuff in the tabs)

    [tab]
    <div id=”eod-block” style=’width:550px’;>
    [eod_head][/eod_head][eod]
    [eod_js][/eod_js][/eod]
    </div>
    (lots of other content in tab}
    [/tab]

    [tab]
    <div id=”eod-block” style=’width:550px’;>
    [eod_head][/eod_head][eod]
    [eod_js][/eod_js][/eod]
    </div>
    (lots of other content in tab}
    [/tab]

    Each shortcode is for random ads, and they are slightly different in each tab…

    My developer says that it is very difficult to fix, and one option is to try to fix it and allow recognition of shortcodes but he is not sure he can, the other is to do do away with short codes and rewrite the whole thing for HTML.

    I have to choose one, but I don’t know which. Is there any advise that can be given?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator cubecolour

    (@numeeja)

    Most tab plugins should enable shortcodes inside the tab shortcodes, and I would be surprised that one has omitted this as it is not difficult to add this support to a plugin.

    First check you are using the shotcodes correctly. If your usage is correct, but your tabs plugin does not support shortcodes within the tab content, you might want to try a different tabs plugin. There are plenty to choose from, but I can confirm that mine, Tabby Responsive Tabs, does support shortcodes within tab content.

    Thread Starter ovbg

    (@ovbg)

    Thanks cubecolour. The tabs was included as part of a theme I bought. I’ll contact the developer as well and ask them.

    There does seem to be an issue regarding shortcodes in this theme’s tabs.

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

The topic ‘Shortcode within shortcode’ is closed to new replies.