Skip to content

Instantly share code, notes, and snippets.

@armandmorin
Created September 1, 2011 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save armandmorin/1186710 to your computer and use it in GitHub Desktop.
Save armandmorin/1186710 to your computer and use it in GitHub Desktop.
sample output
<?php
global $testimonial_metabox;
while( $testimonial_metabox->have_fields( 'testimonials' ) )
{
echo '<div class="';
echo $testimonial_metabox->the_field('background');
echo $testimonial_metabox->the_value();
echo '">';
echo wpautop($testimonial_metabox->get_the_value('content'));
echo $testimonial_metabox->the_value( 'name' ); echo "</br>";
echo $testimonial_metabox->the_value( 'audio' );
echo "</div>";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment