Wordpress 我在哪里可以找到由WP_查询返回的帖子字段?

Wordpress 我在哪里可以找到由WP_查询返回的帖子字段?,wordpress,Wordpress,假设我使用$query=newwp\u查询(参数)或$worksArray=get_posts(args) 在哪里可以找到返回列表的可用字段,以便我知道从帖子中可以得到什么 foreach ($worksArray as $work) { $work->ID } $work对象中除了id之外还有什么? 我找不到返回类型的类图/引用。Codex的文档显示它返回帖子列表,但是没有链接查看这些帖子可以是什么,或者有哪些字段 (例如:$work->the_title(),$work->som

假设我使用
$query=newwp\u查询(参数)
$worksArray=get_posts(args)

在哪里可以找到返回列表的可用字段,以便我知道从帖子中可以得到什么

foreach ($worksArray as $work) {
  $work->ID
}
$work对象中除了id之外还有什么? 我找不到返回类型的类图/引用。Codex的文档显示
它返回帖子列表
,但是没有链接查看这些帖子可以是什么,或者有哪些字段

(例如:
$work->the_title()
$work->something_其他

来自以下页面:

返回的字段为:

ID (integer) The post ID 
post_author (integer) The post author's ID 
post_date (string) The datetime of the post (YYYY-MM-DD HH:MM:SS) 
post_date_gmt (string) The GMT datetime of the post (YYYY-MM-DD HH:MM:SS) 
post_content (string) The post's contents 
post_title (string) The post's title 
post_category (integer) The post category's ID.
post_excerpt (string) The post excerpt 
post_status (string) The post status
comment_status (string) The comment status (open|closed|registered_only) 
ping_status (string) The pingback/trackback status (open|closed) 
post_password (string) The post password 
post_name (string) The post's URL slug 
to_ping (string) URLs to be pinged 
pinged (string) URLs already pinged 
post_modified (string) The last modified datetime of the post
post_modified_gmt (string) The last modified GMT datetime of the post
post_content_filtered (string) 
post_parent (integer) The parent post's ID (for attachments, etc) 
guid (string) A link to the post. 
menu_order (integer) 
post_type (string) (post|page|attachment) 
post_mime_type (string) Mime Type (for attachments, etc) 
comment_count (integer) Number of comments 

难道没有任何文件吗????它是“post”的一种post类型。应该有文档look,例如在
get_posts()
文档中: