Question and answer is powered by AnsPress.io
I have used custom field in post. I want to show the value in front end
get_post_meta( $post_id, $key,false );
This function is used to retrieve post meta field for a post.
$post_id: Add your post id here.
$key: Add your custom field name.