Forums

New Plugin: Show Shortcode (2 posts)

  1. kcfried
    Member
    Posted 10 months ago #

    Hi all! I'd like to announce a new little utility plugin called Show Shortcode. Here's the description:

    Show Shortcode is a plugin that lets plugin developers display their shortcodes without executing them and without any special formatting or extra work. No HTML tricks or hacks, no raw editing in the HTML view! Just wrap your shortcode in the [showshortcode] tags and it will display your shortcode as plain text.

    Available shortcodes:

    [showshortcode]
    [showsc]
    [ssc]

    All shortcodes perform the same task. Add the optional parameter linebreak=1 to add a
    tag to the end of the shortcode.

    I wrote this plugin because as a plugin developer, you have to employ all kinds of little hacks just to get your shortcodes to display on your site without executing. So I thought, why not use a shortcode to display shortcodes?!

    Here's the link: . thanks, and enjoy!

  2. John Blackbourn (johnbillion)
    Member
    Posted 10 months ago #

    Hey kcfried,

    WordPress core supports escaping shortcodes. Just use double square brackets:

    [[myshortcode foo="bar"]]

    Source

Reply

You must log in to post.

About this Topic