• Resolved abhishake_verma

    (@abhishake_verma)


    Hi,

    Thanks for the great plugin.

    I am trying to add tabs in my posts through code. For this, I am trying to use ‘do_shortcode’ method and providing ‘[restab]’ and ‘[restabs]’ shortcode using this.

    Something like,

    <?php
            do_shortcode('[restabs alignment="osc-tabs-left" responsive="false"]');
            do_shortcode('[/restabs]');
          ?>

    However, it gives an error,
    Warning: implode() [function.implode]: Invalid arguments passed in /home/content/81/11782081/html/hyattfnb/wp-content/plugins/easy-responsive-tabs/easy_res_tab.php on line 163

    What am I missing here? I have activated the plugin.

    Apologies if this has been asked here before.

    Thanks.

    https://wordpress.org/plugins/easy-responsive-tabs/

Viewing 1 replies (of 1 total)
  • Plugin Author osCitas Themes

    (@oscitas)

    Hi Abhishake Verma,

    To use do_shortcode, we have to write full shortcode in single go such as

    <?php
            do_shortcode('[restabs alignment="osc-tabs-left" responsive="false"]
    [restab title="Tab number 1" active="active"]Tab 1 content goes here.[/restab]
    [restab title="Tab number 2"]Tab 2 content goes here.[/restab]
    [restab title="Tab number 3"]Tab 3 content goes here.[/restab]
    [restab title="Tab number 4"]Tab 4 content goes here.[/restab][/restabs]');
          ?>

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Adding tabs through code’ is closed to new replies.