Literal Shortcode

Plugin URI: Contributors: bitacre
Donate link:
Tags: plugin, shortcode, echo, display, tag, bracket, brace, arrow, html, show, short code
Requires at least: 2.8
Tested up to: 3.5
Stable tag: 1.0.0

Adds a shortcode for the literal display of other shortcodes, html tags, or characters in post or page text.


A shortcode used to display other shortcodes, html tags, and ascii characters without having them reverted by the WYSIWYG editor. Does [ ], < >, and custom chr codes with several easy to remember shortcodes for each.


  1. Download the latest zip file and extract the literal-shortcode directory.
  2. Upload this directory inside your /wp-content/plugins/ directory.
  3. Activate 'Literal Shortcode' on the 'Plugins' menu in WordPress.
  4. Insert the shortcode in a post or page (replacing category-slug with an acutal slug name) to return the number of posts in that category.

Frequently Asked Questions

How do I add this into my posts?

To display the shortcode [gallery] without invoking it, you would type [brace]gallery[/brace].

If you need opening AND closing shortcodes, you'll have to do it twice. So, to display [flv]uploads/maru.flv[/flv] without invoking it, you would type [brace]/flv[/brace]uploads/maru.flv[brace]flv[/brace].

To display the html tag <div> without invoking it, you would type [arrow]div[/arrow].

To insert a custom ascii character, you would type [chr num="##"] where ## is the character code you want to print.

Why did you make this?

I have a WordPress blog about WordPress stuff (very meta), so it's helpful to be able to display code like this without having it executed, or reverted by the editor.

Can I change the shortcode?

Yes, just open literal-shortcode.php and add or change what text you want to trigger the shortcode in on of the arrays near the bottom. If this gets any kind of popularity, I'll make that easier by adding an options page.

Can you add this feature I just thought of?

Can I? Yes. Will I? Yes, if I think it would be a helpful addition. I'm trying to keep things clean and simple, but there's always room for improvement, so let me know if you think a feature is lacking!


Literal Shortcode Screenshot 1
It's a shortcode, you can't really do it justice with a screenshot, so here's a picture of Maru the cat.



  • First released version.
  • There may still be bugs, but I can't find any.

Upgrade Notice


First release, no upgrade notice (included to make the WordPress readme.txt validator happy).

Readme Generator


Donations are graciously accepted to support the continued development and maintenance of this and other plugins. We currently accept Paypal and kind words.

6 Thoughts on “Literal Shortcode

  1. I can’t get the ascii character feature to work – just get &#; Using WP 3.4.2, any suggestions?

  2. Yes, I’ve tried various tweaks to the format in case there was a space in the wrong place etc but always with a code. Currently just have a test thus: [chr num=”65″] – will character A appear in a comment here instead?

  3. Just a thought – could a recent Jetpack feature be the cause? I’ve not particularly been keeping track but something like the new comments facility might create interference.

Leave a Reply

Your email address will not be published. Required fields are marked *