Skip to content

Instantly share code, notes, and snippets.

@farinspace
Created April 13, 2012 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farinspace/2378362 to your computer and use it in GitHub Desktop.
Save farinspace/2378362 to your computer and use it in GitHub Desktop.
put values into an array and then output as string
global $my_metabox;
$output = array();
while( $my_metabox->have_fields( 'my_fields' ) )
{
array_push( $output, sprintf( $my_metabox->get_the_value( 'my_value' ) ) );
}
echo join(', ', $output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment