Definition:
function get_post_meta($post_id, $key, $single = false) {}
Retrieve post meta field for a post.
Parameters
- int $post_id: Post ID.
- string $key: The meta key to retrieve.
- bool $single: Whether to return a single value.
Return values
returns:Will be an array if $single is false. Will be value of meta data field if $single is true.
Source code
function get_post_meta($post_id, $key, $single = false) {
return get_metadata('post', $post_id, $key, $single);
}
1593

February 12, 2011 


No comments yet... Be the first to leave a reply!