Add Additional Cookie on WordPress

wordpress-logo
Today I realize that the simple setcookie("sevisitor", 1, time()+3600); would not work perfectly on WordPress especially when your combine it with WordPress permalink. Here a simple hack that you can opt for if you want to set in multiple WordPress environment (especially for plug-ins and themes).

setcookie("sevisitor", 1, time()+3600,
    SITECOOKIEPATH, COOKIE_DOMAIN, false, true);

There are multiple alternative but for it work perfectly on multiple installation.

KreativeThemes: Selling Premium WordPress Themes

kt

KreativeThemes is a collaboration of young creative and talented people in developing and producing WordPress themes (other platforms will join in in the future) of finest quality at affordable prices. It is co-founded by Izuddin Helmi and Amirul Faisyal and backed up by a dedicated team comprises of Ajmal Eylia, Gaddafi, Mohd Huzairy, Nur Fathihah and me.

[Click here to read more...]

SEO Friendly WordPress Title

wordpress-logo
The default WordPress title using the_title() structure is acceptable but lack SEO. Some Wordpress theme already try to improve the structure instead of just the default value, most theme I been using has adopted this method.

<title><?php wp_title('--',true,'right'); ?> <?php bloginfo('name');?></title>

I prefer a more informative title display to improve SEO for your blog/website.

<?php
function seo_title()
{
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    wp_title('&laquo;', true, 'right');

    if ($paged > 1)
    {
        echo ' Page ' . $paged . ' &mdash;';
    }

    echo ' ';
    bloginfo('name');

    if (is_home() && $paged === 1)
    {
        echo ' &mdash; ';
        bloginfo('description');
    }
}
?>
<title><?php seo_title(); ?></title>

Detect cURL and SimpleXMLElement for FeedBurner Counter

Before you implement FeedBurner counter (text mode) in any of your WordPress theme always remember to check for cURL and SimpleXMLElement.

function stream_capability() {
	return (!!class_exists("SimpleXMLElement") AND !!function_exists("curl_init") ? TRUE : FALSE);
}

CryBook WordPress Theme

screenshotWelcome back to all WordPress blogger who have been using our CryBook theme since it was first introduced on 11th September 2008 at Themetation.com. CryBook version 1 was our experiment with minimalist imageless theme with custom admin screen. We have gone through some improvement Lifestream to CryBook v2.

[Click here to read more...]