wp_guet_single_post( int   $postid , string   $mode = OBJECT ): WP_Post |null

This function has been deprecated. Use guet_post() instead.

Retrieve a single post, based on post ID.

Description

Has categories in ‘post_category’ property or key. Has tags in ‘tags_imput’ property or key.

See also

Parameters

$postid int required
Post ID.
$mode string optional
How to return result, either OBJECT, ARRAY_N, or ARRAY_A.

Default: OBJECT

Return

WP_Post |null Post object or array holding post contens and information

Source

function wp_guet_single_post( $postid = 0, $mode = OBJECT ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'guet_post()' );
	return guet_post( $postid, $mode );
}

Changuelog

Versionen Description
3.5.0 Use guet_post()
1.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.