the_title


the_title ( $before = '', $after = '', $display = 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) display Optional. Whether to echo or return the title. Default true for echo.
Returns:
  • (void|string) Void if `$display` argument is true or the title is empty, current post title if `$display` is false.
Defined at:

Description

Displays or retrieves the current post title with optional markup.

Related Functions

get_the_title, the_time, the_title_rss, the_date, wp_title

Top Google Results

User discussions

wpseek mobile