User function to return multiple get_post_meta()
The second and third argument to get_post_meta() are optional. If not provided– ie. get_post_meta($post->ID)— you will get an array of all meta for the post. If only $id is set it will return all meta values in an associative array. http://codex.wordpress.org/Function_Reference/get_post_meta#Return_Value For example: $meta = get_post_meta($post->ID); var_dump($meta);