Title: wp_title
Published: April 25, 2014
Last modified: February 24, 2026

---

# wp_title( string $sep, bool $display = true, string $seplocation ): string|void

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#return)
 * [More Information](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#more-information)
    - [Best practices](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#best-practices)
    - [Return Values](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#return-values)
 * [Source](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_title/?output_format=md#wp--skip-link--target)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_title%2F)
before being able to contribute a note or feedback.