axpcna
Last Updated: February 25, 2016
·
60
· jailandrade
417229 10151102435561347 97313412 n

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>';
}
?>
Say Thanks
Respond