Wordpress Plugin: Hungred Smart Quotes

Hungred Dot Com is a web development site. We have many code that was encoded automatically by Wordpress for no good reason. Hence, it makes most of our code ugly and unreadable. This is very frustrating as i will have to go through each and every post in Hungred Dot Com to search for any problem on the post! Hence, i created this plugin that will replace Wordpress smart quotes function with another function that can take in the tag of my Wordpress syntax plugin. For those post that are currently suffering from code formatting, i have also implemented a decoding mechanism in this plugin to prevent special tag within the syntax plugin from being misunderstood as PHP start tag such as

<?php

will not be interpreted as code but plain text on the screen! I will display a screen shot of what it does at the end of this article.

Description

This is a small plugin that replace the smart quotes function in Wordpress that format/encode the code in Wordpress. Hence, most symbols will be formatted/encoded by Wordpress texturize function.

Example,

'&' (ampersand) becomes '&amp'
'"' (double quote) becomes '&quot'
''' (single quote) becomes '''
'< ' (less than) becomes '&lt'
'>' (greater than) becomes '&gt'

The plugin will help solve the above problem and produce the result below,

Example,

'&amp' (ampersand) becomes '&'
'&quot' (double quote) becomes '"'
''' (single quote) becomes '''
'&lt' (less than) becomes '< '
'&gt' (greater than) becomes '>'

A control panel is also provided in this plugin to add in special tag for your code or disable smart quote in Wordpress.
This problem is due to external code format plugin that required special tag such as

[php]

in syntaxhigher evolved.
Upon, activate, all existing article that was previously formatted will be decoded by this plugin while future article will be protected by the replaced texturize function for Wordpress (so that the plugin tells Wordpress texturize function to include your special tag from encode/format).

Hence, this plugin still provides you with the functionality of smart quote with the additional add on features to ease your life.

Screen shot of the plugin

Here are the control panel of Hungred Smart Quote. Simple and clear.

hungred smart quotes setting Wordpress Plugin: Hungred Smart Quotes

How to use this plugin

Do the following and you can ignore it for the rest of your life!

  1. Install it into your wordpress site
  2. Activate Hungred Smart Quotes
  3. On setting, go to the control panel of Hungred Smart Quotes and decide whether to allow wordpress smart quote and what are the tag you used for your code plugin. I used syntaxhighlighter evolved which required
    [php]

    to prevent Wordpress from formatting my code

  4. DONE!

That’s it!

Plugin

You can search for this plugin on Wordpress repository by typing ‘hungred’ as search criteria. If you want to manually install this, the link is here

Example

We are all visualize people. This is what the plugin can do if you just leave it alone and regardless if you enable or disabled Wordpress smart quotes, the decoding mechanism will still run!

Before
hungred smart quote before one Wordpress Plugin: Hungred Smart Quotes

After
hungred smart quote after one Wordpress Plugin: Hungred Smart Quotes

Before
hungred smart quote before two Wordpress Plugin: Hungred Smart Quotes

After
hungred smart quote after two1 Wordpress Plugin: Hungred Smart Quotes

 

Like this post? Share it!

http://hungred.com/wp-content/plugins/sociofluid/images/digg_48.png http://hungred.com/wp-content/plugins/sociofluid/images/reddit_48.png http://hungred.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://hungred.com/wp-content/plugins/sociofluid/images/delicious_48.png http://hungred.com/wp-content/plugins/sociofluid/images/furl_48.png http://hungred.com/wp-content/plugins/sociofluid/images/technorati_48.png http://hungred.com/wp-content/plugins/sociofluid/images/google_48.png http://hungred.com/wp-content/plugins/sociofluid/images/myspace_48.png http://hungred.com/wp-content/plugins/sociofluid/images/facebook_48.png http://hungred.com/wp-content/plugins/sociofluid/images/twitter_48.png

Related posts:

  1. Wordpress Plugin: Hungred Image Fit This is a very small and lightweight plugin that automatically...
  2. Wordpress Text Formatting Problem – Solved! Due to Wordpress smart quote functionality, users who write code...
  3. Get Tag With Post ID In Wordpress Found out Wordpress documentation doesn't contain such information and decide...
  4. Change Wordpress Default From Email Address Without Plugin A very simple way of changing Wordpress default from email...
  5. How To Exclude Page Permanently In Wordpress Without Using Any Plugin here is a way to permanently exclude pages globally across...

This entry was posted on Thursday, September 24th at 2:26 PM and is filed under Informative, Wordpress Plugin. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

2 User Commented

Comments are automatic closed after certain period. Please send the author an email instead.

Pingback/Trackback: show

  1. [...] used hungred smart quotes to solve our issue on the above mention [...]

  2. Wordpress Plugin: Hungred Smart Quotes – Hungred Dot Com…