admin管理员组文章数量:1302428
I'm trying to render a post_content
with blocks using the do_blocks
function, that takes a gutenberg content, parses every block, and returns an HTML string.
The problem is that some blocks aren't rendering correctly. I suppose it is because do_blocks
doesn't enqueue the blocks scripts, it only parses the blocks.
For example, the core-embed/youtube
instead of rendering the iframe of the YouTube video, only shows the video URL.
Blocks that renders using the a PHP render_callback
function renders correctly, so its seems related to JS.
Is there a solution to this?
本文标签: phpGutenberg Blocks doesn39t render correctly when using doblocks
版权声明:本文标题:php - Gutenberg Blocks doesn't render correctly when using do_blocks 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741702681a2393384.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论