WordPress.org

Ready to get started?Download WordPress

Forums

Squelch Tabs and Accordions Shortcodes
[resolved] Run-time error in Nevada theme (6 posts)

  1. khavalier
    Member
    Posted 1 year ago #

    Hi -

    I'm using the Nevada theme from UnitedThemes in WP 3.5.1 and have not been able to get this plugin to work. I even tried using the example tabs from your documentation:

    [tabs title="" disabled="false" collapsible="true" active="0" event="click"] [tab title="Tab 0"]Tab 0 content[/tab] [tab title="Tab 1"]Tab 1 content[/tab] [tab title="Tab 2"]Tab 2 content[/tab] ... [/tabs]

    and get the following error with nothing else displayed.

    Warning: Invalid argument supplied for foreach() in /home/clubbie/maskandwig.com/beta/wp-content/plugins/squelch-tabs-and-accordions-shortcodes/squelch-tabs-and-accordions.php on line 423

    Any ideas?

    Also, in an earlier thread you mentioned that you were going to put in the capability to target a tab in V0.3. Any luck with that?

    Thanks, the plug-in looks awesome and I'm anxious to use it.

    Don

    http://wordpress.org/plugins/squelch-tabs-and-accordions-shortcodes/

  2. Matt Lowe
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Don,

    That theme appears to provide tabs as a shortcode which will conflict with the plugin. You can try using

    [subtabs][subtab]...[/subtab][/subtabs]

    instead. So your example above would become

    [subtabs title="" disabled="false" collapsible="true" active="0" event="click"]
    [subtab title="Tab 0"]Tab 0 content[/subtab]
    [subtab title="Tab 1"]Tab 1 content[/subtab]
    [subtab title="Tab 2"]Tab 2 content[/subtab]
    [/subtabs]

    Note that the ... near the end of your example was not intended to be copied and pasted, it is there to show you can add as many [tab][/tab] shortcodes as you wish.

  3. khavalier
    Member
    Posted 1 year ago #

    Super, that worked. Yeah, understood on the ellipses. I got lazy when I copied it into the comment.

    Thanks for your quick response!

  4. khavalier
    Member
    Posted 1 year ago #

    Also, I had a second question in my original post. Did you sort out how to target a specific tab?

  5. Matt Lowe
    Member
    Plugin Author

    Posted 1 year ago #

    Ah yes, good point.

    Also, in an earlier thread you mentioned that you were going to put in the capability to target a tab in V0.3. Any luck with that?

    This didn't go into v0.3 as that release ended up having to be about making various necessary changes to keep the plugin in the WordPress.org directory. As such this is now planned for the next release (v0.4) which I'm hoping to get out in the next month or so.

  6. khavalier
    Member
    Posted 1 year ago #

    Super!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.