Site logo

Archived topic

Can dynamic data (e.g. featured image) be used on ANY block?

9 replies · Started by Clifford on June 3, 2021

Viewing posts 1–10 of 10

Hi Clifford,

The dynamic feature doesn't work with wp core image block, you can use GP's Dynamic image block. (the icon is GP logo)

I don't see that block anywhere in the Block Manager, not there at all, neither enabled nor disabled

OK, so I'm asking for it to be available in the default page/post editor - please

Unfortunately, block/post editor is handled by WP, that's not something that GP can control, at least at this moment it's not possible.

Incorrect, it's a block, so it can be in any of the post editors for any post type.

Comment out the return at line 61 of wp-content/plugins/gp-premium/elements/class-block-elements.php to get it to appear when editing Posts, not just Elements

Hi Clifford,

The reason why we should not add any theme specific blocks to the default post/page block editor as this creates the theme-lock issue which WordPress doesn't like.

This means that when you switch a theme, that GP block will disappear and it might create an error like invalid block.

Ideally, if this option is needed, then WordPress should add a featured image block that works with all themes.

Hope this makes sense.

Could you please add it to the GP plugin, not the GP theme?

This archived topic is closed to new replies.