我正在尝试显示父页面的子页面,这是可行的。但是,当我试图在子页面显示的列表中排除当前页面时,它不起作用。
如何修复此问题?
$current_post_id = $post->ID;
if(wp_list_pages("title_li=&child_of=2143&exclude=\'.$current_post_id.\'")):
if($title)
echo $before_title . $title . $after_title;
wp_list_pages("title_li=&child_of=2143&exclude=\'.$current_post_id.\'");
endif;