[Plugin: WordPress Post Tabs] Post tabs php for theming?
-
I’d like to use tab posts in a theme so my team doesn’t have to re-enter data. Is there a php alternative to the shortcode to help accomplish this?
I tried the following but it displayed the data and
[/tab]
outside of the tabs.<?php echo do_shortcode('[tab name="Specifications"]'); ?> <p>something goes here</p> <?php echo do_shortcode('[/tab]'); ?> <?php echo do_shortcode('[tab name="Resources"]'); ?> <?php echo do_shortcode('[/tab]'); ?> <?php echo do_shortcode('[tab name="Accessories"]'); ?> <?php echo do_shortcode('[/tab]'); ?> <?php echo do_shortcode('[tab name="Realted Products"]'); ?> <?php echo do_shortcode('[/tab]'); ?> <?php echo do_shortcode('[end_tabset]'); ?>
Any help is greatly appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: WordPress Post Tabs] Post tabs php for theming?’ is closed to new replies.