Home
Tips & tricks
Continous Integration
Deployment
Plugins
Contact
parse
How to modify the Gutenberg blocks from post content with PHP
Modify the post content generated by Gutenberg by parsing the blocks with PHP and serializing the modified array back to…
Date
December 10, 2021
Posted by
Andrei
Tags
blocks
,
gutenberg
,
modify
,
parse
ZeroWP
Find me online
Let's connect on
LinkedIn
I do open source on
GitHub
See my contribution to
WordPress
Follow me on
Twitter
Follow me on
Dribbble
Sometimes on
Stack Exchange
Recent comments
Maybe doing a side-by-side comparison before and after modification would help to understand. If the modified code…
Andrei
3 days ago
Hi Andrei, that is exactly the point: I don't. I just modify existing numbers (i.e. post-ids). And yet still the…
Michael
3 days ago
Yes, you're right. I've put the conditional check outside of the loop by mistake. I've updated the article. Thank you…
Andrei
3 days ago
How are you changing it? If you add more attributes, they need to be registered, otherwise, the block render will…
Andrei
3 days ago
Thanks for taking the time to write this article. I needed to know how to insert taxonomy terms programmatically and…
Paul C
3 days ago
That is an interesting approach and I made it work nicely for this use case: I have a "hand-picked products"…
Michael
1 month ago
ZeroWP
Recent comments