WPDev.one
Core Function
View Source on Trac ↗

single_post_title()

single_post_title( mixed $prefix = '', mixed $display = true )

Displays or retrieves page title for post.

Parameters 0 required

Name / Type Description
$prefix
string

Optional. What to display before the title.

$display
bool

Optional. Whether to display or retrieve title. Default true.

Return Value

((string)
| void) Title when retrieving.

Function Information

Since Version
0.71
Source File
wp-includes/general-template.php
Advertisement