wp_get_single_post
- wp_get_single_post is deprecated since version 3.5.0!
Alternative: get_post()
wp_get_single_post ( $postid = 0, $mode = OBJECT )
Parameters:- (int) postid Post ID.
- (string) mode How to return result, either OBJECT, ARRAY_N, or ARRAY_A.
See:Returns:- (WP_Post|null) Post object or array holding post contents and information
Defined at: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: 3.5.0
Description
Retrieve a single post, based on post ID.Has categories in 'post_category' property or key. Has tags in 'tags_input'
property or key.