Function Reference/wp get single post
(Add your language)
This function has been deprecated since Version 3.5. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also
Retrieve a single post, based on post ID.
<?php wp_get_single_post( $postid, $mode ) ?>
- (integer) (optional) Post ID.
- Default: 0
- (string) (optional) How to return result. Expects a Constant: OBJECT, ARRAY_N, or ARRAY_A.
- Default: OBJECT
- Post object or array holding post contents and information with two additional fields (or keys): 'post_category' and 'tags_input'.
- Deprecated: 3.5.0
- Since: 1.0.0
wp_get_single_post() is located in