Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// Get the value of the post meta with name `_my_post_meta_name`
$post_meta_value = get_post_meta( $post->ID, '_my_post_meta_name', true );
// Print the post meta value
printf( 'The value of my post meta is %s', $post_meta_value );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment