Codex tools: Log in
Contents |
Retrieve data from a post field based on Post ID.
Examples of the post field will be, 'post_type', 'post_status', 'content', etc and based off of the post object property or key names.
The context values are based off of the taxonomy filter functions and supported values are found within those functions.
<?php get_post_field( $field, $post, $context ); ?>
Since: 2.3
get_post_field() is located in wp-includes/post.php