Created
July 17, 2012 20:48
-
-
Save farinspace/3131976 to your computer and use it in GitHub Desktop.
quick code
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 $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