WordPress 参考函数:get_children

描述 get_children() 返回附件(attachments)、历史版本(revisions)或者根据父页面获取子页面。类似与 get_posts()。 概要 array $children =& get_children( mixed $args = “”, constant $output = OBJECT); 返回值 返回一个文章关联数组(参数 $output 决定输出的变量类型),以文章ID作为数组的Key。如果没有发现任何文章,返回空数组。 在版本2.9之前,如果没有发现任何文章则返回 false。 默认参数(版本2.7) $defaults = array( ‘post_parent’ => 0, …