Open Sam-Xronn opened 1 year ago
Thanks for the report. Can you provide an example post content string that gets parsed incorrectly?
Template parts are not supported in the block editor; I have had no issues including block patterns, if that helps.
What problem does this address?
Currently its incredibly difficult to pass valid core block markup to
wp_insert_post()
making it tricky to dynamically inject content into websites using the FSE. Typically I've found valid block markup from PHP files assigned to thepost_content
parameter is converted into the "classic editor" block.What is your proposed solution?
Ideally update
wp_insert_post()
andwp_update_post
to be able to pass FSE template parts, or full templates. These can then be designed within FSE and passed to these hooks.