do_shortcode in theme template
-
Hi,
Is it possible to use the ‘echo do_shortcode’ function in my theme to use Tabs? I can’t seem to get it to work, and I’m placing it inside the loop.
This is my template:
<?php get_header(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h1><?php the_title(); ?></h1> <?php the_content(); ?> <?php echo do_shortcode('[tabs]'); ?> <?php echo do_shortcode('[tab title="Test1"]'); ?> <p>Content here</p> <?php echo do_shortcode('[/tab]'); ?> <?php echo do_shortcode('[tab title="Test2"]'); ?> <p>Content here</p> <?php echo do_shortcode('[/tab]'); ?> <?php echo do_shortcode('[/tabs]'); ?> </div> <?php endwhile; endif; ?> <?php get_footer(); ?>
Any suggestions? Thanks.
https://www.ads-software.com/extend/plugins/arconix-shortcodes/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘do_shortcode in theme template’ is closed to new replies.