
实例说明如何通过Python来连接管理WordPress
wp_get_single_post ( $postid = 0, $mode = OBJECT )
wp_get_single_post: 这个函数为一个给定的文章ID检索一个单一的文章对象。如果找到该文章,它将返回一个WP_Post对象,如果该文章不存在,则返回空。
根据文章ID,检索单个文章。
在’post_category’属性或键中有类别。在’tags_input’属性中拥有标签或密钥。
function wp_get_single_post( $postid = 0, $mode = OBJECT ) { _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' ); return get_post( $postid, $mode ); }