Title: Shortcode Preview Block
Author: Ronak Ganatra
Published: <strong>July 24, 2020</strong>
Last modified: October 29, 2026

---

Search plugins

![](https://ps.w.org/shortcode-with-preview-block/assets/icon-256x256.png?rev=2379372)

# Shortcode Preview Block

 By [Ronak Ganatra](https://profiles.wordpress.org/ronakganatra/)

[Download](https://downloads.wordpress.org/plugin/shortcode-with-preview-block.1.1.0.zip)

 * [Details](https://pirate.wordpress.org/plugins/shortcode-with-preview-block/#description)
 * [Reviews](https://pirate.wordpress.org/plugins/shortcode-with-preview-block/#reviews)
 *  [Installation](https://pirate.wordpress.org/plugins/shortcode-with-preview-block/#installation)
 * [Development](https://pirate.wordpress.org/plugins/shortcode-with-preview-block/#developers)

 [Support](https://wordpress.org/support/plugin/shortcode-with-preview-block/)

## Description

Normal WordPress blocks do not show how a shortcode will look on the front end. 
This block renders the shortcode in the editor so you can check the result without
opening the front end.

#### How to use

 1. Add the **Shortcode with Preview** block.
 2. Enter a shortcode, for example `[gallery]`.
 3. The preview below the field shows the rendered output.

## Blocks

This plugin provides 1 block.

 *   Shortcode with Preview Shows a preview of any shortcode in the editor. It renders
   the shortcode on the editor side so you do not need to view the front end to 
   see the result.

## Installation

 1. Upload the plugin files to `/wp-content/plugins/shortcode-with-preview-block`, 
    or install it through the Plugins screen.
 2. Activate the plugin through the Plugins screen.
 3. Edit a post or page and insert the Shortcode with Preview block.

## FAQ

### Does this replace the core Shortcode block?

No. Use this block when you want to see the rendered shortcode while editing.

### Which WordPress version does this require?

WordPress 6.3 or newer, and PHP 7.2 or newer. It is tested with WordPress 7.1.

## Reviews

![](https://secure.gravatar.com/avatar/f2949e1420c186ba7fe9eafb8f5c406b6b29ddebb639e7c7da6f93d39b784643?
s=60&d=retro&r=g)

### 󠀁[Does not work with any shortcode](https://wordpress.org/support/topic/does-not-work-with-any-shortcode/)󠁿

 [Martin Sauter](https://profiles.wordpress.org/martinsauter/) March 28, 2025

For example, [ninja_form id=1] is not rendered.

![](https://secure.gravatar.com/avatar/4bb63af9968f7373c22c122b7ee63ddee8fcebea5a2530d9b7c2cd4efe5f22d0?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-29313/)󠁿

 [Alexey Tikhonov](https://profiles.wordpress.org/altert/) January 14, 2021

It makes creating layout for complex pages and e.g. shortcodes for images referenced
from DAM much easier!

![](https://secure.gravatar.com/avatar/5cd674c5590ecbeea486d16c6898c5ca75c520708f206075909bd06d657268a6?
s=60&d=retro&r=g)

### 󠀁[Useful but not 100% accurate](https://wordpress.org/support/topic/useful-but-not-100-accurate/)󠁿

 [PolyWogg](https://profiles.wordpress.org/polywogg/) August 12, 2020 1 reply

Tested with NEXTGEN Gallery shortcodes that insert a pic…if I do "float right", 
it doesn't wrap text around this block nor does it centre if I float center. It 
shows a good preview that the regular editor doesn't, but it also means it is embedded
within a block with extra controls on it. P.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/)

## Contributors & Developers

“Shortcode Preview Block” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Ronak Ganatra ](https://profiles.wordpress.org/ronakganatra/)

“Shortcode Preview Block” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/shortcode-with-preview-block/contributors)
for their contributions.

[Translate “Shortcode Preview Block” into your language.](https://translate.wordpress.org/projects/wp-plugins/shortcode-with-preview-block)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/shortcode-with-preview-block/),
check out the [SVN repository](https://plugins.svn.wordpress.org/shortcode-with-preview-block/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/shortcode-with-preview-block/)
by [RSS](https://plugins.trac.wordpress.org/log/shortcode-with-preview-block/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.0

 * Tested with WordPress 7.1.
 * Register the block from block.json as apiVersion 3 so it loads in the current
   block editor.
 * Load the editor script with the block editor and server-side render dependencies
   it uses.
 * Keep sidebar shortcode text as plain text so markup is not saved into the shortcode.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.1.0**
 *  Last updated **2 weeks ago**
 *  Active installations **900+**
 *  WordPress version ** 6.3 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.2 or higher **
 *  Languages
 * [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/shortcode-with-preview-block/),
   [English (US)](https://wordpress.org/plugins/shortcode-with-preview-block/), 
   and [Gujarati](https://gu.wordpress.org/plugins/shortcode-with-preview-block/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/shortcode-with-preview-block)
 * Tags
 * [block](https://pirate.wordpress.org/plugins/tags/block/)[blocks](https://pirate.wordpress.org/plugins/tags/blocks/)
   [gutenberg](https://pirate.wordpress.org/plugins/tags/gutenberg/)[preview](https://pirate.wordpress.org/plugins/tags/preview/)
   [shortcode](https://pirate.wordpress.org/plugins/tags/shortcode/)
 *  [Advanced View](https://pirate.wordpress.org/plugins/shortcode-with-preview-block/advanced/)

## Ratings

 3.7 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/)

## Contributors

 *   [ Ronak Ganatra ](https://profiles.wordpress.org/ronakganatra/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/shortcode-with-preview-block/)