如果您是指404错误:
function slt_childPageAction( $actions, $page ) {
$actions["create-child"] = \'<a href="\'.add_query_arg(array(\'post_type\' => \'page\', \'parent_id\' => $page->ID), admin_url(\'post-new.php\')).\'" title="Create a new page with this page as its parent">Create child</a>\';
return $actions;
}
add_filter( \'page_row_actions\', \'slt_childPageAction\', 10, 2 );
function slt_setChildPage() {
global $post;
if ( $post->post_type === \'page\' && $post->post_parent === 0 && isset( $_GET["parent_id"] ) )
echo \'<script type="text/javascript">jQuery( document ).ready( function($) { $("#parent_id").val("\' . (int)$_GET["parent_id"] . \'"); } );</script>\';
}
add_action( \'edit_page_form\', \'slt_setChildPage\' );
(指向/wp admin/的url路径已硬编码)
很好的发现顺便说一句:)