Hướng dẫn xóa Tags, Category, Author trong wordpress

Sử dụng hàm sau

add_filter( 'get_the_archive_title', function ($title) {

    if ( is_category() ) {

            $title = single_cat_title( '', false );

        } elseif ( is_tag() ) {

            $title = single_tag_title( '', false );

        } elseif ( is_author() ) {

            $title = '<span class="vcard">' . get_the_author() . '</span>' ;

        }

    return $title;

});
Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *