Adds a shortcode for the literal display of other shortcodes, html tags, or characters in post or page text.
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.
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.
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 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!
Requires: 2.8 or higher
Compatible up to: 3.5.2
Last Updated: 2013-1-1
Active Installs: 30+
Got something to say? Need help?