Core Function
View Source on Trac ↗ the_title()
the_title( mixed $before = '', mixed $after = '', mixed $display = true ) Displays or retrieves the current post title with optional markup.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $before string | Optional. Markup to prepend to the title. Default empty. |
| $after string | Optional. Markup to append to the title. Default empty. |
| $display bool | Optional. Whether to echo or return the title. Default true for echo. |
Return Value
((void)
(void | string) Void if `$display` argument is true or the title is empty,
current post title if `$display` is false.
Function Information
Since Version
0.71
Source File
wp-includes/post-template.php
Advertisement