回声 'archives : ' 。 single_cat_title();显示错误的输出

echo 'archives : ' . single_cat_title(); displays wrong output

我的 PHP 代码给出了我需要的错误输出。

<h4>
<?php        
    if ( is_category() ) {
        echo 'archives : ' . single_cat_title();
    } elseif ( is_tag() ) {
        echo single_tag_title() . ' : archives';
    } elseif ( is_author() ) {
        the_post();
        echo 'Author archives : ' . get_the_author();
        rewind_posts();
    } elseif ( is_day() ) {
        echo 'Daily archives : ' . get_the_date();
    } elseif ( is_month() ) {
        echo 'Monthly archives : ' . get_the_date('F Y');
    } elseif ( is_year() ) {
        echo 'Yearly archives : ' . get_the_date('Y');
    } else {
        echo 'Archives:';
    }
?>
</h4>

给出商业档案 :,但希望它是档案 : 商业。

请问我该如何解决这个问题

谢谢 史蒂文

single_cat_title('archive : ');

我找到了答案,感谢您的帮助。