---
title: Get document title tag for the current page
url: "https://www.seopress.org/support/guides/get-document-title-tag-current-page/"
lang: en-US
updated: 2021-10-12
---

# 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?
