Support block patterns in post type templates #36323
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Feature] Templates API
Related to API powering block template functionality in the Site Editor
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
What problem does this address?
Registered block patterns can't subsequently be referenced within the
template
argument passed toregister_post_type
:And due to #33379, this means you have to maintain both the HTML string version of a block pattern to use in
register_block_pattern
so it can be inserted on-demand, plus a PHP array version of the block pattern for use in a template default. Not very DRY.What is your proposed solution?
Support block pattern names within the
template
arg ofregister_post_type
.It's possible I'm simply "doing it wrong", but I do not see documentation suggesting this is or isn't currently supported.
The text was updated successfully, but these errors were encountered: