Title: Title
Published: June 7, 2026
Last modified: October 19, 2026

---

# Title

## In this article

 * [Attributes](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#attributes)
 * [Supports](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#supports)
 * [Context](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#context)
 * [Block Markup](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#block-markup)
 * [Source](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#source)

 Displays the title of a post, page, or any other content-type.

 * **Name:** `core/post-title`
 * **Category:** [theme](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/)
 * **API Version:** [3](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/)
 * **Block Type:** [Dynamic](https://developer.wordpress.org/block-editor/getting-started/fundamentals/static-dynamic-rendering/)(
   server-rendered)

## 󠀁[Attributes](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#attributes)󠁿

_Defined via the [`attributes`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/)
property in block.json._

  |  Attribute |  [Type](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#type-validation) |  [Default](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#default-value) |  Description |  
   |  `level` |  `number` |  `2` |  — |  
 |  `levelOptions` |  `array` |  — |  — |  
 |  `isLink` |  `boolean` |  `false` |  [Role](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#role): `content` |  
 |  `rel` |  `string` |  `""` |  [HTML attr](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#attribute-source): `rel`. [Role](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#role): `content` |  
 |  `linkTarget` |  `string` |  `"_self"` |  [Role](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#role): `content` |  
 |  `placeholder` |  `string` |  — |  — |

## 󠀁[Supports](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#supports)󠁿

_Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/)
property in block.json._

 * [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor):`
   true`
 * [`align`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#align):`"
   wide"`, `"full"`
 * [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html):`
   false`
 * [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
    - `backgroundImage`: `true`
    - `backgroundSize`: `true`
    - `gradient`: `true`
 * [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
    - [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients):`
      true`
    - [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link):`
      true`
 * [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
    - `minHeight`: `true`
    - `minWidth`: `true`
 * [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow):`
   true`
 * [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
    - `margin`: `true`
    - `padding`: `true`
 * [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
    - [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize):`
      true`
    - [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight):`
      true`
    - [`textAlign`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-textalign):`
      true`
    - `fitText`: `true`
 * [`interactivity`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#interactivity):
    - `clientNavigation`: `true`

## 󠀁[Context](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#context)󠁿

_Defined via the [`usesContext` and `providesContext`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/)
properties in block.json._

**Uses context:**

 * `postId`
 * `postType`
 * `queryId`

## 󠀁[Block Markup](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#block-markup)󠁿

This is a [**dynamic block**](https://developer.wordpress.org/block-editor/getting-started/fundamentals/static-dynamic-rendering/).
It is rendered on the server and does not save HTML in post content.

In post content, it is stored as a block comment:

    ```html
    <!-- wp:post-title /-->
    ```

## 󠀁[Source](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-title/?output_format=md#source)󠁿

 * [block.json](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/post-title/block.json)(
   [reference](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/))
 * [Source directory](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/post-title/)—
   browse the `edit` and `save` source files, `index.php`, and more.

First published

June 7, 2026

Last updated

October 19, 2026

Edit article

[ Improve it on GitHub: Title ](https://github.com/WordPress/gutenberg/edit/trunk/packages/block-library/src/post-title/README.md)

[  Previous: Time to Read](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-time-to-read/)

[  Next: No Results](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-query-no-results/)