Shortcode Shortcode
This plugin might be useful to you if you write about WordPress plugins and want to be able to show examples of shortcodes usage, but without the shortcodes being processed. The resultant display will be the same whether the plugin or theme providing the shortcode you are writing about is active or
This plugin might be useful to you if you write about WordPress plugins and want to be able to show examples of shortcodes usage, but without the shortcodes being processed. The resultant display will be the same whether the plugin or theme providing the shortcode you are writing about is active or not.
The Shortcode Shortcode:
Add a [shortcode] shortcode in the format:
[shortcode]gallery[/shortcode]
This will display on the page as [gallery] instead of actually showing a gallery of the attached images
A closer look.
- 01Upload the plugin folder to plugins directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Use on a page/post/CPT by including the shortcode in your content eg: [shortcode]gallery[/shortcode]
Frequently asked questions.
What is the syntax of the shortcode for displaying an example of a shortcode?
If you are writing about the native WordPress [gallery] shortcode and want to describe how to use the shortcode, you would include this in your text as: [shortcode]gallery[/shortcode]
When the shortcode is displayed on the frontend it is within a span with the ‘shortcode’ class so you can target it in your child theme stylesheet.
Why would I need this plugin?
You might find this plugin useful if you are documenting or reviewing WordPress plugins and need to show the shortcode syntax without the shortcode being processed by WordPress – which would happen if you have the plugin you are writing about installed on your site.