This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Output Buffering Fixed 3

By: a guest on Sep 22nd, 2011  |  syntax: PHP  |  size: 0.68 KB  |  views: 117  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data