Use block templates when there is no post_content #18517
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Feature] Templates API
Related to API powering block template functionality in the Site Editor
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Help Request
Help with setup, implementation, or "How do I?" questions.
Use case: updating sites that have previously relied on postmeta for content - such as sites using ACF or page builders, where the main content is not stored in post_content.
Feature suggestion: I really wish Block Templates that are applied to post types would apply for not just new posts, but any post that does not currently contain any post_content.
I am converting several large sites over from using ACF in the past, where we heavily structured content and in many cases there is no post_content at all because it was all templated, over to the Block Editor instead. It is a tedious process that would be much faster if the Block Templates I have defined, which work beautifully for new posts, would also work for existing posts - but the templates aren't applied, I just get a completely blank "Start writing" screen.
The alternative I have is to delete my current posts and build new ones. What I don't like about that approach is, my sites have shortened permalinks, and it's not currently possible to set a permalink before you publish. It's hard to remember to update the permalinks in addition to all of the content, so I run the risk of a lot of 404 errors using this route. It also makes the content appear as though it was created whatever day I publish the new Block Editor version - it doesn't keep the historical published and updated dates, which are valuable for content auditing.
The text was updated successfully, but these errors were encountered: