Code
the_title( );
Output
The title of the current post or page
Code
the_title( '<h1>', '</h1>' );
Output
The title of the current post or page in h1 tags
Parameter | Details |
---|---|
$before | (string) (optional) Text to place before the title. |
$after | (string) (optional) Text to place after the title. |
$echo | (Boolean) (optional) Display the title or return it for use in PHP |