php - Gutenberg blocks shortcodes compatibility

admin2025-04-19  0

I have a custom plugin that will help me in building my layouts using bootstrap.

I'm reading about the blocks that are part of the new Gutenberg editor.

I want to understand if the shortcodes and the blocks can be work together, if it's not possible, do i need to rewrite the plugin? Would like to know the differences.

I have a custom plugin that will help me in building my layouts using bootstrap.

I'm reading about the blocks that are part of the new Gutenberg editor.

I want to understand if the shortcodes and the blocks can be work together, if it's not possible, do i need to rewrite the plugin? Would like to know the differences.

Share Improve this question edited Oct 23, 2019 at 20:13 Arsalan Mithani 5534 silver badges15 bronze badges asked Oct 23, 2019 at 15:53 userone2userone2 441 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Gutenberg has a block for this. The Shortcode Block.

There are no settings for the shortcode block. You simply have one input box where you can insert a shortcode.

Shortcodes are most commonly used by plugins to add functionality to a WordPress site, without the need to write custom code. Essentially, it's a shortcut to adding more advanced pieces of content.

You should be perfectly fine to use your shortcode.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745057891a282513.html

最新回复(0)