Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I know how to show name and value of all Custom Fields
<?php the_meta(); ?>
and I know how to show one Custom Field value
<?php echo get_post_meta($post->ID, "yourkey", false); ?>
But how to show name and value of one particularly Custom Field.
I think what you're looking for is concatenation with .
$key = "yourkey";
echo $key . ": " . get_post_meta( $post->ID, $key, false );
Required, but never shown