Advertisement
Guest User

Output Buffering Fixed 3

a guest
Sep 22nd, 2011
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  2. <h1><?php the_title(); ?></h1>
  3. <?php ob_start();    ?>
  4. [tab name='Overview']
  5.     <div id="product-image"><?php the_post_thumbnail(); ?></div>
  6.     <?php the_field('overview'); ?>
  7. [/tab]
  8. [tab name='Features & Benefits']
  9.     <?php the_field('features_&_benefits'); ?>
  10. [/tab]
  11. [tab name='Options & Accessories']
  12.     <?php the_field('options_&_accessories'); ?>
  13. [/tab]
  14. [tab name='Downloads']
  15.     <a href="<?php the_field('downloads'); ?>">Download PDF</a>
  16. [/tab]
  17. [tab name='Supplies']
  18.     <?php the_field('supplies'); ?>
  19. [/tab]
  20. [end_tabset]
  21. <?php
  22. $output_buffer = ob_get_contents();
  23. ob_end_clean();
  24. echo do_shortcode( $output_buffer );
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement