Created
April 13, 2012 17:00
-
-
Save farinspace/2378362 to your computer and use it in GitHub Desktop.
put values into an array and then output as string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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