Post Content – core/post-content

Displays the contents of a post or page.

Use the Post Content block to display the contents of a post or page or any other custom post type.


Post Content block screenshot.


This example shows the Query Loop displaying the latest post. The Post Template block displays the Post Title, the Post Content and the Post Date.

  • is shutting down

    WP-a2z and its subdomains will be shut down over the coming weeks and months. In July this year WP-a2z will be 10 years old. But I no longer have the enthusiasm to maintain it.

    While it was great fun creating the sites they’re now taking far too much time and resources to maintain. I can’t keep up with all the changes and every now and then the system goes into overload when being indexed by web crawlers.

    Therefore, I’ll be shutting the sites down bit by bit, with redirection to the most appropriate URLs for most of the content.

    The first stage of the shutdown is the removal of the dynamic API reference for APIs (functions and methods), Classes, Files and Hooks. I will no longer be parsing WordPress core, or the featured plugins & themes.

    Content accessed Redirects to


  • The Post Content block is intended for use in Templates and Template parts.
  • It can also be used in the Post Template block within the Query Loop block.

Recursion detection and prevention

  • The Post Content block is one of those blocks that can go recursive.
  • This was a known issue in Gutenberg 9.x
  • I created a Post Content block automatically and it all went tits up with Gutenberg 10.0.0
    • I thought it had been fixed.
    • I must have been mistaken.
    • I’ve updated the issue WordPress/gutenberg#26923.
    • The issue is still open, though work has been done to improve the behaviour.
  • Gutenberg does now contain some recursion detection logic.

Within the block editor

If used in normal content the block will display a message

On the front end

When the Post Content block is rendered on the front end you get.

Content not available; already processed.
core/template-part post-content:fizzie:0,core/post-content 130281