//

Override WordPress Shortcode to show [ ] brackets

WP Greet Box icon
Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic.

Just came across an annoying issue where we needed to show some examples of our new WordPress price comparison plugin WordPress on a site that has the plugin installed which means everytime you try to show the examples you get the plugin content!

The easiest way we have found to fix this is do the following:

Use the following numeric character references instead of normal [ ] as this way WordPress doesn’t process your plugins shortcode

e.g. [showphones make=’htc’ ] is the same as [showphones make='htc']

So just remember to replace [ with [ and ] with ]

Share and Enjoy:
  • Facebook
  • Digg
  • Technorati
  • Google Bookmarks
  • StumbleUpon
  • del.icio.us
  • Sphinn

Discussion

One comment for “Override WordPress Shortcode to show [ ] brackets”

  1. Thanks for the great tip. I googled all sorts of things until I stumbled upon your post. It solved the problem I was facing – so thanks for the remote assist.

    Posted by Lorin Olsen | November 28, 2010, 7:42 pm

Post a comment

Notify me of followup comments via e-mail. You can also subscribe without commenting.