Post content

Displays the contents of a post, page or custom post type.

Block category: Theme.
Added in: WordPress 5.8

The post content block can be used in templates and in the query loop block.

If the post content block is placed directly in the post or page content, you will see a notification saying that the block cannot be rendered inside itself. Doing that would create an infinite loop that would cause the page to break:

A notification that says "Block cannot be rendered inside itself" replaces the post content block.

Sidebar settings

Inherit default layout: This setting enables the blocks in your post content to be wide or full width.

Customize the content width: Set a default width and a wide width for the blocks in the post content.

Toolbar settings

Full-width and wide width.

HTML Markup

<!-- wp:post-content /-->

Output

<div class="entry-content">
<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!</p>
</div>