Skip to content

Instantly share code, notes, and snippets.

@bonny
Created October 20, 2012 15:52
Show Gist options
  • Save bonny/3923693 to your computer and use it in GitHub Desktop.
Save bonny/3923693 to your computer and use it in GitHub Desktop.
Extended Return Values for Post field
Array
(
[id] => 41
[title] => Post to test extended return values
[permalink] => http://example.com/wordpress/?p=41
[post] => stdClass Object
(
[ID] => 41
[post_author] => 1
[post_date] => 2012-10-19 13:58:19
[post_date_gmt] => 2012-10-19 13:58:19
[post_content] => [php snippet=1]
[post_title] => Post to test extended return values
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => post-to-test-extended-return-values
[to_ping] =>
[pinged] =>
[post_modified] => 2012-10-19 14:09:36
[post_modified_gmt] => 2012-10-19 14:09:36
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://example.com/wordpress/?p=41
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[ancestors] => Array
(
)
[filter] => raw
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment