WordPress.org

Ready to get started?Download WordPress

Forums

Shortcode Shortcode
Useful for plugin documentation (1 post)

5 stars
  1. cubecolour
    ɹoʇɐɹǝpoɯ
    Plugin Author

    Posted 6 months ago #

    I included shortcode syntax on a post to document my tabby responsive tabs plugin using html entities for the square brackets so I could show shortcode syntax without the shortcodes being processed.

    Switching between the text editor to the visual editor caused the html entities to became converted into square brackets turning the example shortcodes into real shortcodes. These were converted into tabs by the tabby plugin turning my post into a confusing mess.

    I created this plugin to prevent this from happening again. The intention was to make a safe way to display example shortcode syntax on the frontend that will never be processed by WordPress.

    There is documentation on the codex which outlines the double bracket notation to enables shortcodes to be displayed, but the plugin may still be useful as it adds a span with a class that can be targeted in the stylesheet.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.