WordPress at a glance
function is not described

wp_get_single_post() WP 1.0.0

Deprecated in 3.5.0. It is no longer supported and can be removed in future releases. Use get_post() instead.

Retrieve a single post, based on post ID.

Has categories in 'post_category' property or key. Has tags in 'tags_input' property or key.

  • See: get_post()

No Hooks.


WP_Post/null. Post object or array holding post contents and information


wp_get_single_post( $postid, $mode );
Post ID.
Default: 0
How to return result, either OBJECT, ARRAY_N, or ARRAY_A.
Default: OBJECT

Code of wp get single post: wp-includes/deprecated.php WP 5.2.2

function wp_get_single_post( $postid = 0, $mode = OBJECT ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' );
	return get_post( $postid, $mode );