get_post_meta Wordpress function


Description:

Retrieve post meta field for a post.


Syntax:


Arguments:

(int) $post_id Post ID.
(string) $key Optional. The meta key to retrieve. By default, returns data for all keys.
(bool) $single Whether to return a single value.


Return Type:

(mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_post_meta


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×