Reusable Template – core/template

Template block used as a container.

The Reusable Template block defines a list of block items.

Example

This is the PHP source for the template for the Block Custom Post Type. When creating a new Block the editor is populated with these blocks.

For more information on how this is used see Block documentation structure.

Notes

  • core/template is a registered block defined with supports.inserter = false.
  • Therefore a Reusable Template cannot be inserted manually.
  • Use Templates to define the initial structure of a custom post type.
  • For programming details see the official documentation: Templates
  • Since the server may not know how to construct a block, templates are not used when an empty post is created programmatically in PHP.