相關函數
the_archive_title() / get_the_archive_title()
WordPress 的歸檔種類有 N 多種,日期、分類、標籤、文章形式等…… 而這個不起眼的函數卻可以幫你節省不少歸檔模板上的邏輯處理。
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_title
原:https://developer.wordpress.org/reference/functions/the_archive_title/
the_archive_description
原:https://developer.wordpress.org/reference/functions/get_the_archive_description/
原2:https://developer.wordpress.org/reference/functions/the_archive_description/