• Resolved Nazakat Ali

    (@nazakatali32)


    Is there any way to add posttabs in template file
    Using do_shortcode or any other php tag.
    This is code i am using but it is not working.

    <?php echo do_shortcode("[tab:Tab1]") ?>
    //HTML contents
    <?php echo do_shortcode('[tab:END]') ?>

    https://ww.wp.xz.cn/plugins/posttabs/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rodrigo Primo

    (@rodrigosprimo)

    postTabs was created before the creation of the shortcode API

    So unfortunately it is not possible to achieve what you are trying.

    Thread Starter Nazakat Ali

    (@nazakatali32)

    Any alternative to achieve this.

    Plugin Author Rodrigo Primo

    (@rodrigosprimo)

    You could try calling postTabs_filter($content) directly and see if that works. I’m not sure if it will.

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

The topic ‘"do_shortcode " Not working for post tabs.’ is closed to new replies.