Skip to content

Instantly share code, notes, and snippets.

@farinspace
Created July 17, 2012 20:48
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/3131976 to your computer and use it in GitHub Desktop.
Save farinspace/3131976 to your computer and use it in GitHub Desktop.
quick code
global $basic_info;
// $posts is a list of posts for which you have meta data for
foreach ( $posts as $post )
{
$meta = $basic_info->the_meta( $post->ID );
if ( isset( $meta['basic_info'] ) )
{
foreach ( $meta['basic_info'] as $info )
{
array_push( $clients, $info['client'] );
}
}
}
var_dump( $clients );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment