the_title


the_title ( $before = '', $after = '', $echo = true )

Parameters:
  • (string) before Optional. Markup to prepend to the title. Default empty.
  • (string) after Optional. Markup to append to the title. Default empty.
  • (bool) echo Optional. Whether to echo or return the title. Default true for echo.
Returns:
  • (void|string) Void if `$echo` argument is true, current post title if `$echo` is false.
Defined at:

Description

Display or retrieve the current post title with optional markup.

Related Functions

the_title_rss, the_time, get_the_title, the_date, wp_title

Top Google Results

User discussions

wpseek mobile