Get Post Meta
(integer) (required) The ID of the post from which you want the data. Use $post->ID to get a post’s ID.
(string) (optional) A string containing the name of the meta value you want.
Default: empty string
(boolean) (optional) If set to true then the function will return a single result, as a string. If false, or not set, then the function returns an array of the custom fields. This may not be intuitive in the context of serialized arrays. If you fetch a serialized array with this method you want $single to be true to actually get an unserialized array back. If you pass in false, or leave it out, you will have an array of one, and the value at index 0 will be the serialized string.
Get Meta for a Single Key:
View original post 23 more words