How Do I Add a Shortcode in WordPress Gutenberg?

Adding a shortcode to WordPress Gutenberg is easy. To begin, open the “Shortcodes” screen in your WordPress admin area.

From here, you can add a new shortcode by clicking on the “Add a Shortcode” button.

Once you’ve added the new shortcode, you’ll need to provide a few details. First, you’ll need to provide a name for your shortcode.

Next, you’ll need to provide a template for your shortcode. Finally, you’ll need to provide an input box for your shortcode’s parameters.

To get started, let’s take a look at an example shortcode. Suppose you want to create a shortcode that displays a list of posts. To do this, you would enter the following code into your Shortcodes screen:

[Gutenberg]

Shortcode: posts

Parameters:

– id: The ID of the post you want to display

– permalink: The permalink of the post you want to display

– show_in_menu: Whether or not the post should appear in the menu

The resulting shortcode would look like this:

Id: 1

Permalink: https://www.example.com/post/1

Show in Menu: Yes.