该标签显示或返回当前日志的标题。该标签必须在WordPress主循环(loop)内。
<?php the_title( $before, $after, $display ); ?>
$before
(字符串)放在标题前的文本。默认为''。
$after
(字符串)放在标题后的文本。默认为''。
$display
(布尔型)显示标题(TRUE)或返回标题以便用于PHP(FALSE)。默认为TRUE。
<?php the_title('<h3>', '</h3>'); ?>
the_title()位于wp-includes/post-template.php