Skip to content Skip to navigation
Back to the main support

Get document title tag for the current page

To get the title tag inside a template file like header.php, just echo this native WordPress function:

wp_get_document_title();

Simple isn’t it?