常用函数-get_page_children()

0条评论

常用函数-get_page_children()

说明

在编号相匹配的页面列表中检索子页面。

要与页面编号上的页面参数相匹配。还需要与子页面相匹配,以便检索某一页面上的所有子页面。切勿使用SQL查询来获取子页面。

用法

<?php &get_page_children( $page_id, $pages ) ?>
<?php get_page_children( $page_id, $pages ) ?>

参数

$page_id

(数组)(必需)页面编号

默认值:None

$pages

(数组)(必需)页面对象列表

默认值:None

返回的值

(数组)

示例

注释

该函数递归自我调用。

修改记录

自1.5.1版本后

源文件

&get_page_children() 位于 wp-includes/post.php中 。

相关资源

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.