I\'m trying to display post meta values and post meta keys, If only one value is to be display I can used the simple function get_post_meta() but what I need now is to post
I use it in form of a meta box. Here is a function that dumps values of all the meta data for post.
function dump_all_meta(){
echo "All Post Meta
";
// Get all the data.
$getPostCustom=get_post_custom();
foreach( $getPostCustom as $name=>$value ) {
echo "".$name.""." => ";
foreach($getPostCustom as $name=>$value) {
echo "".$name.""." => ";
foreach($value as $nameAr=>$valueAr) {
echo "
";
echo $nameAr." => ";
echo var_dump($valueAr);
}
echo "
";
}
} // Callback funtion ended.
Hope it helps. You can use it inside a meta box or at the front-end.