Check what Gutenberg blocks are in post_content
Question
I’m working on a design that has different styling if a certain Gutenberg block is present on a page. In other words, if the first block is a custom built Gutenberg block, the post_title is rendered elsewhere due to design choices made.
Is there any function in WordPress to get a list of all Gutenberg blocks present in the post_content?
0
block-editor, post-content
4 years
2020-02-14T08:38:34-05:00
2020-02-14T08:38:34-05:00 0 Answers
84 views
0
Leave an answer