WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

WPMU Functions/get blog post

Description

Gets an object of the requested post.

Parameters

$blog_id
(integer) (required) The id of the blog being requested.
Default: None
$post_id
(integer) (required) The id of the post being requested.
Default: None

Return Values

(object) 
Returns an object with the following elements.
ID 
Example value: 5
post_author 
Example value: 3
post_date 
Example value: 2008-07-06 14:38:58
post_date_gmt 
Example value: 2008-07-06 21:38:58
post_content 
post_title 
post_category 
Example value: 0
post_excerpt 
post_status 
Example value: publish
comment_status 
Example value: open
ping_status 
Example value: open
post_password 
Example value:
post_name 
Example value: 5
to_ping 
pinged 
post_modified 
Example value: 2008-07-06 14:39:20
post_modified_gmt 
Example value: 2008-07-06 21:39:20
post_content_filtered 
post_parent 
Example value: 0
guid 
Example value: http://mu.samplesite.net/exampleblog/?p=[ID]
menu_order 
Example value: 0
post_type 
Example value: post
post_mime_type 
comment_count 
Example value: 0

Usage

<?php get_blog_post($blog_id$post_id); ?>