Posts Tagged ‘Hana Code Insert’

Hana Code Insert v2.2

Posted in Wordpress, Wordpress Plugins on October 4th, 2009 by HanaDaddy – Be the first to comment

v2.2 (10/04/2009) :

1. PHP code content evaluation
Some modification on PHP evaluation that you can use <?php and ?> within the entry content for PHP evaluation.

So, in the previous version, if you wanted PHP code output, you could not use <?php and ?>. But now you can use them inside the entry item.

Previously you could only define PHP codes only.

print "<div style='border:1px dotted red; padding: 5px;'>";
print date("m/d/Y H:i:s");
print "</div>";

But now, below code will work too.

<div style='border:1px dotted red; padding: 5px;'>
< ?php print date("m/d/Y H:i:s");?>
</div>

entry_content

2. Custom ShortCode
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.

If defined, custom short code format can be used instead of [hana-code-insert name='Entry Name' /]. For example, if you define {{ for start indicator, }} for end indicator, you can use {{Entry Name}}. But beware, your new shortcode format may conflict with other plugins and cause one or more plugins to fail.
read more »

Hana Code Insert Example 1: List of sub pages or sub categories

Posted in Wordpress, Wordpress Plugins on October 4th, 2009 by HanaDaddy – Be the first to comment

Hello, this is HanaDaddy and I would like to show you how to quickly add some quick sub categories or sub pages within a page or a post. For all of you that do not know what Hana Code Insert Plugin is, it’s a simple plugin that enables you to add piece of codes (HTML, Javascript, or even PHP) in the middle of post or page. You can use it to add AdSense, Paypal donation button, HTLM forms, Analytics, or anything.

First, you need to install Hana Code Insert Plugin.

Once you installed and activated the plugin, visit the Settings => Hana Code Insert option page. Activate the ‘Enable PHP Execution ‘ check box. You need to enable this checkbox to use PHP. Then create an entry by inserting below code This is to show sub page of the current post.

You should not define <?php or ?> and need to enable ‘Evaluate as php code’ when you create the code entry. Please refer to below image for more info.

image
read more »