Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <h1><?php the_title(); ?></h1>
- <?php ob_start(); ?>
- [tab name='Overview']
- <div id="product-image"><?php the_post_thumbnail(); ?></div>
- <?php the_field('overview'); ?>
- [/tab]
- [tab name='Features & Benefits']
- <?php the_field('features_&_benefits'); ?>
- [/tab]
- [tab name='Options & Accessories']
- <?php the_field('options_&_accessories'); ?>
- [/tab]
- [tab name='Downloads']
- <a href="<?php the_field('downloads'); ?>">Download PDF</a>
- [/tab]
- [tab name='Supplies']
- <?php the_field('supplies'); ?>
- [/tab]
- [end_tabset]
- <?php
- $output_buffer = ob_get_contents();
- ob_end_clean();
- echo do_shortcode( $output_buffer );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement