Viewing 3 replies - 1 through 3 (of 3 total)
  • if you got to the docs on his dedicates site it shows you there exactly how to do it

    Where it shows?

    If I haven’t made any mistakes when redacting this code I use in one of my page templates (php file), this method works for me to nest two menus, a vertical tab menu inside of a vertical accordion.

    The method is to do_shortcode(”); once to create the subtab menu, but instead of echoing it out, assigning it to a variable, and then doing a second do_shortcode(‘code’.$var.’code’); to include the previous output and then echoing to the browser.

    <?php
        $subtabs = do_shortcode('
            [wptabs mode="vertical"]
                [wptabtitle load="https://my.url/SubTab1.php"]Sub Tab #1[/wptabtitle]
                [wptabtitle load="https://my.url/SubTab2.php"]Sub Tab #2[/wptabtitle]
                [wptabtitle load="https://my.url/SubTab3.php"]Sub Tab #3[/wptabtitle]
            [/wptabs]'
        );
    
        echo do_shortcode('
            [wptabs type="accordion"]
                [wptabtitle load="https://my.url/Tab1.php"]Normal AJAX loaded tab[/wptabtitle]
                [wptabtitle]Subtabs[/wptabtitle][wptabcontent]'.$subtabs.'[/wptabcontent]
            [/wptabs]
        ');
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tab inside another tab’ is closed to new replies.