WordPress.org

Forums

Shortcode Shortcode
Useful for plugin documentation (1 post)

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

    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shortcode Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.