Last Updated: February 25, 2016
·
310
· jailandrade

How display the custom post meta from a specified post

Inside the loop in Wordpress you can do

<?php
$meta_values = get_post_meta( get_the_ID() );
foreach ($meta_values as $key => $value){
    echo $key . ' : ' . $value[0] . '<br>';
}
?>