我有几个页面,我正试图像这样将子页面导入每个页面:
wp_insert_post (
array(
\'post_title\' => $something,
\'post_type\' => \'page\',
\'post_author\' => 1,
\'post_status\' => \'publish\',
\'post_parent\' => array(17, 25, 27, 29)
)
);
因此,结构应如下所示:first->imported_name
second->imported_name
...
但这不起作用,它只创建了1个子页面。我应该将代码复制5次,每次5页吗?