Post excerpt

Display a post’s excerpt. The post excerpt block lets you style and customize the excerpt text.

Block category: Theme.
Added in: WordPress 5.8

The read more link is optional. You can add a custom link text and choose to show the link to the right of the excerpt content, or on a new line. If you do not add a link text, the read more placeholder is not shown on the front.

The excerpt length option was removed in 5.8 because of a bug, and the underlying problem has not been solved yet.

Sidebar settings

Show link on new line.

The post excerpt block sidebar with typography, color and excerpt settings.

Toolbar settings

  • When the text of the excerpt is selected, you can make it bold and/or italic.
  • Align text to the left, center or right.
  • The block supports the following inline settings:
    • Inline code
    • Inline image
    • Strikethrough
    • Subscript
    • Superscript
    • Text color
  • Add links.

HTML Markup

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

Output

<div class="wp-block-post-excerpt"><p class="wp-block-post-excerpt__excerpt">Display a post’s excerpt. Block category: Theme. Added in: WordPress 5.8 The excerpt length option was removed in 5.8 because of bugs. The post excerpt block lets you create the excerpt. When the text of the excerpt is selected, you can make it bold and/or italic. Align text to the left, center or right. The block…  </p></div>