Title: Adding tabs through code
Last modified: August 21, 2016

---

# Adding tabs through code

 *  Resolved [abhishake_verma](https://wordpress.org/support/users/abhishake_verma/)
 * (@abhishake_verma)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-tabs-through-code/)
 * 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/](https://wordpress.org/plugins/easy-responsive-tabs/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [osCitas Themes](https://wordpress.org/support/users/oscitas/)
 * (@oscitas)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-tabs-through-code/#post-5096846)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-responsive-tabs_f3e7d6.svg)
 * [Easy Responsive Tabs](https://wordpress.org/plugins/easy-responsive-tabs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-responsive-tabs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-responsive-tabs/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-responsive-tabs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-responsive-tabs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-responsive-tabs/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [osCitas Themes](https://wordpress.org/support/users/oscitas/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/adding-tabs-through-code/#post-5096846)
 * Status: resolved