Wordpress Plugins

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 »

Redirection 301 and 302 and Google

Posted in SEO, Wordpress, Wordpress Plugins on September 23rd, 2009 by HanaDaddy – Be the first to comment

301 and 302 http reply codes indicating redirections are very much different in terms of Google SEO. And did you know WordPress is always using 302 by default?

Let’s see what the difference is first.

301 :  Moved Permanently. 301 tells you that the current website requested by current URI is moved to a new brand new URI, so you should drop the originally used URI. If you are moving a website to a different domain, this is the way should be done.

302 : Moved Temporarily. 302 tells you that the current redirection is temporary  and you should use the original request URI next time you visit again. If you are temporarily redirecting to a page (site update or special product promotion…), this is it.

Now let’s see How Google sees these redirection codes. If 301 is used, Google will move original request URI’s PageRank to the new destination URI. And eventually remove the request URI. If 302 is used PageRank will be intact to the original website and the original website will also benefit from the destination website’s content.

Many shared webhosting accounts set up both www (ex. http://www.example.com )and top level domain (http://example.com) to point to the same webpage by default. If you use them both website URLs thinking they are the same address, you are mistaken. In fact, you will eventually split the PageRank and pages might be considered as duplicated content.
read more »