WordPress.org

Ready to get started?Download WordPress

Forums

New Plugin: Show Shortcode (2 posts)

  1. Pat Friedl
    Member
    Posted 2 years 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
    Member
    Posted 2 years ago #

    Hey kcfried,

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

    [[myshortcode foo="bar"]]

    Source

Topic Closed

This topic has been closed to new replies.

About this Topic