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

---

Søg plugins

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

# Shortcode Preview Block

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

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

 * [Detaljer](https://da.wordpress.org/plugins/shortcode-with-preview-block/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/shortcode-with-preview-block/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/shortcode-with-preview-block/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/shortcode-with-preview-block/#developers)

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

## Beskrivelse

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.

## Blokke

Dette plugin giver 1 blok.

 *   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.

## Anmeldelser

![](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/) 28. marts, 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/) 14. januar, 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/) 12. august, 2020 1 svar

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.

 [ Læs alle 3 anmeldelser ](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/)

## Bidragsydere & udviklere

“Shortcode Preview Block” er open source-software. Følgende personer har bidraget
til dette plugin.

Bidragsydere

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

“Shortcode Preview Block” er blevet oversat til 2 sprog. Tak til [oversætterne](https://translate.wordpress.org/projects/wp-plugins/shortcode-with-preview-block/contributors)
for deres bidrag.

[Oversæt “Shortcode Preview Block” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/shortcode-with-preview-block)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/shortcode-with-preview-block/),
tjek [SVN repository](https://plugins.svn.wordpress.org/shortcode-with-preview-block/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/shortcode-with-preview-block/)
via [RSS](https://plugins.trac.wordpress.org/log/shortcode-with-preview-block/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 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**
 *  Senest opdateret **3 uger siden**
 *  Aktive installationer **1.000+**
 *  WordPress-version ** 6.3 eller højere **
 *  Testet op til **7.1.4**
 *  PHP-version ** 7.2 eller højere **
 *  Sprog
 * [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/shortcode-with-preview-block/),
   [English (US)](https://wordpress.org/plugins/shortcode-with-preview-block/) og
   [Gujarati](https://gu.wordpress.org/plugins/shortcode-with-preview-block/).
 *  [Oversæt til dit sprog](https://translate.wordpress.org/projects/wp-plugins/shortcode-with-preview-block)
 * Tags
 * [block](https://da.wordpress.org/plugins/tags/block/)[blocks](https://da.wordpress.org/plugins/tags/blocks/)
   [gutenberg](https://da.wordpress.org/plugins/tags/gutenberg/)[preview](https://da.wordpress.org/plugins/tags/preview/)
   [shortcode](https://da.wordpress.org/plugins/tags/shortcode/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/shortcode-with-preview-block/advanced/)

## Bedømmelser

 3.7 ud af 5 stjerner.

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

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

[Se alle anmeldelser](https://wordpress.org/support/plugin/shortcode-with-preview-block/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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