Badcrumb如何显示带有父标题的页面标题>带有永久链接的子标题?有什么想法吗? 时间:2013-11-13 作者:Adeel function the_breadcrumb() { global $post; if (!is_home()) { echo ""; if(is_single()): echo \'Main\'; else: echo "Home"; endif; echo " / "; if ( is_category() || is_single() ) { the_category(\', \'); if ( is_single() ) { echo " / "; the_title(); } } elseif ( is_page() && $post->post_parent ) { echo "post_parent)."\\">".get_the_title($post->post_parent) . ""; echo " / "; echo the_title(); } elseif (is_page()) { echo \'\'; echo the_title(); echo ""; } } } 1 个回复 最合适的回答,由SO网友:Krzysiek Dróżdż 整理而成 您应该更改此行:echo "post_parent)."\\">".get_the_title($post->post_parent) . ""; 对这样的事情:echo \'<a href="\'. get_permalink($post->post_parent).\'">\'. apply_filters(\'the_title\', get_the_title($post->post_parent)) .\'</a>\'; 结束 文章导航