Hana Code Insert
So I decided to come up with the plugin that will help me insert that AdSense or Paypal Donation code into the middle of article.Hana Code Insert v2.3
- v2.3 (04/11/2012) : Fixing bugs with newer WordPress version. Fixed “Missing quicktag button in the HTML editor” problem with WordPress v3.3+
- v2.2 (10/04/2009) : Some modification on PHP evaluation that you can use
?>within the entry content for PHP evaluation. Also extra feature for custom short code is added. You can define your own custom short code prefix and post fix. So you don’t have to use
[hana-code-insert]shortcode any more.
- V.2.0 (7/20/2009) : PHP evaluation settings can be set within the option page. Editor Helper Dialog button is added for easier insert. If you are upgrading , you should enable the PHP execution option from the option page if you were using PHP eval function previously.
- V.1.5 (1/16/2009) : There was issue with the form and textarea tag . It is fixed now. Also, there is a ‘Remove All’ button now that you can remove all code entries if you have any issue.
After the creation, you can find that the newly added entry is shown in the bottom. Copy the usage code example and insert it in your article. That’s all.
Basically, you can place the specific tag element
[hana-code-insert name='...' /] in your wordpress article to show the codes. The ‘name’ attribute is mandatory where you use the name of the code entry that you want to show.
For example, after you setup a code entry in the admin Settings with the name ‘AdSense’, you can invoke the code by using below element in your article.
[hana-code-insert name='AdSense' /]
[hana-code-insert name='donation' /]
[hana-code-insert name='donation with amount' /]
[hana-code-insert name='adsense' /]
Here is the actual code used when setting up in the Settings/Options page with name “php example”.
print " <div style="border:1px dotted red; padding: 5px;">"; print date("m/d/Y H:i:s"); print "</div> ";
And here is the text inserted in the middle of the article.
[hana-code-insert name='php example' /]
For the support, please visit Support Forum
More posts on the Hana Code Insert tag