Archived topic
Block elements for posts & events
1 reply · Started by danhotchkiss on February 21, 2022
I am trying to create a Block Element to display on single posts, and having a couple of problems I can't solve:
1. The Post Author block shows an avatar, but I don't want it to.
2. If I insert the Post Content block on the edit page for the Block Element, I see the message "Block cannot be rendered inside itself." But the post content seems to show fine.
Thanks for any help!
Dan
Hi there,
simple fix is DO NOT use the WP Core theme blocks ie the Author Block or the Post Content Block.
You can use the GenerateBlocks Headline Block to display any type of Dynamic Content including the Title:
https://docs.generatepress.com/article/dynamic-data/
And instead of the Post Block - use the GP Dynamic Content Block:
https://docs.generatepress.com/article/dynamic-blocks/#dynamic-content
For reference theres a lot of docs on using the Block Element here:
https://docs.generatepress.com/article/block-element-overview/