看看这个插件:
Multi-Site Site List Shortcode
或者,如果您喜欢片段,那么:
$blog_list = get_blog_list( 0, \'all\' );
if (count($blog_list) > 1){
echo \'<ul>\';
foreach ($blog_list AS $blog) {
echo \'<li>Blog \'.$blog[\'blog_id\'].\': \'.$blog[\'domain\'].$blog[\'path\'].\'</li>\';
}
echo \'</ul>\'
}