is_home-is_single-is_category-is-not-working-in-wp!

If u are reached here using search engine then I am sure that you are just fucked up 🙁 .. is_home(), is_single(), is_category() are not workingâ€Ļspecially in footer and other places. I faced the same problem. While working with a wordpress theme, this functions were working fine in footer but once I noticed that they are not working as they should be !â€Ļ.

Let me explain why and how this problem occurs and what’s the solution :

I think if u are familiar with the famus LOOP in wordpress. The following is_home(), is_single(), is_category() functions depends on the loop. ACtually when u visit the home page then header.php, index.php, sidebar.php and footer.php files are executed and in the same way when u visit a single post then normally header.php, single.php, sidebar.php and footer.php files are executed. Actually some global page specific query is done for single.php, index.php etc. is_home(), is_single(), is_category() they will work fine if u use the default theme and don’t add any custom query !

Let’s check the code for is_home() function â€Ļ
[code=’php’]/**
* Whether current page view is the blog homepage.
*
* @since 1.5.0
* @uses $wp_query
*
* @return bool True if blog view homepage.
*/
function is_home () {
global $wp_query;
return $wp_query->is_home;
}
[/code]
Ok, for custom query maximum time I use this function get_posts. But to get more control I used query_posts. They are same and share some common arguments but query_posts gives more controls and more arguments to pass to get the exact query. Now Let’s check the code for query_posts() function

[code=’php’]/**
* Setup the Loop based on the query variables.
*
* @uses WP::$query_vars
* @since 2.0.0
*/
function query_posts() {
global $wp_the_query;
$this->build_query_string();
$wp_the_query->query($this->query_vars);
}
[/code]

and code for get_posts

[code=’php’]/**
* Retrieve list of latest posts or posts matching criteria.
*
* The defaults are as follows:
* ‘numberposts’ – Default is 5. Total number of posts to retrieve.
* ‘offset’ – Default is 0. See {@link WP_Query::query()} for more.
* ‘category’ – What category to pull the posts from.
* ‘orderby’ – Default is ‘post_date’. How to order the posts.
* ‘order’ – Default is ‘DESC’. The order to retrieve the posts.
* ‘include’ – See {@link WP_Query::query()} for more.
* ‘exclude’ – See {@link WP_Query::query()} for more.
* ‘meta_key’ – See {@link WP_Query::query()} for more.
* ‘meta_value’ – See {@link WP_Query::query()} for more.
* ‘post_type’ – Default is ‘post’. Can be ‘page’, or ‘attachment’ to name a few.
* ‘post_parent’ – The parent of the post or post type.
* ‘post_status’ – Default is ‘published’. Post status to retrieve.
*
* @since 1.2.0
* @uses $wpdb
* @uses WP_Query::query() See for more default arguments and information.
* @link http://codex.wordpress.org/Template_Tags/get_posts
*
* @param array $args Optional. Override defaults.
* @return array List of posts.
*/
function get_posts($args = null) {
$defaults = array(
‘numberposts’ => 5, ‘offset’ => 0,
‘category’ => 0, ‘orderby’ => ‘post_date’,
‘order’ => ‘DESC’, ‘include’ => ”,
‘exclude’ => ”, ‘meta_key’ => ”,
‘meta_value’ =>”, ‘post_type’ => ‘post’,
‘suppress_filters’ => true
);

$r = wp_parse_args( $args, $defaults );
if ( empty( $r[‘post_status’] ) )
$r[‘post_status’] = ( ‘attachment’ == $r[‘post_type’] ) ? ‘inherit’ : ‘publish’;
if ( ! empty($r[‘numberposts’]) )
$r[‘posts_per_page’] = $r[‘numberposts’];
if ( ! empty($r[‘category’]) )
$r[‘cat’] = $r[‘category’];
if ( ! empty($r[‘include’]) ) {
$incposts = preg_split(‘/[\s,]+/’,$r[‘include’]);
$r[‘posts_per_page’] = count($incposts); // only the number of posts included
$r[‘post__in’] = $incposts;
} elseif ( ! empty($r[‘exclude’]) )
$r[‘post__not_in’] = preg_split(‘/[\s,]+/’,$r[‘exclude’]);

$r[‘caller_get_posts’] = true;

$get_posts = new WP_Query;
return $get_posts->query($r);

}
[/code]

get_posts will not make any problem for is_single(), is_home(), is_category() etc functions.

Solution: To avoid this problem you can use this trick:

[code=’php’]$query_backup = clone($GLOBALS[‘wp_query’]); //keep backup
……
query_posts(…..)

$GLOBALS[‘wp_query’] = $query_backup; //restore from backup
[/code]

Further info: Please keep in mind that the php function clone() will not work in php4, it’s just for php5 becuase Php5 handles objects in different way. Like in php5 you can copy a object in this way
$new_object = clone ($old_object);
here $new_object will not copy the object actually though it will just point to $old_object but in php4 the thing is just copy like bellow.
$new_object = $old_object;

You can check this link for better explanation.

Sometimes pain gives us a way to think 😛

thanks

āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ⧇āϰ āĻĨā§€āĻŽ āĻ•āĻŋāĻ­āĻžāĻŦ⧇ āĻ•āĻžāϜ āĻ•āϰ⧇-āĻĒāĻ°ā§āĻŦ-ā§§

[āϝāĻĻāĻŋ āφāĻĒāύāĻžāϰ āύāϰāĻŽāĻžāϞ āĻāχāϟāĻŋāĻāĻŽāĻāϞ āĻāĻŦāĻ‚ āĻāĻ•āĻĻāĻŽ āĻŦ⧇āϏāĻŋāĻ• āĻĒāĻŋāĻāχāϚāĻĒāĻŋ āĻœā§āĻžāĻžāύ āύāĻž āĻĨāĻžāϕ⧇ āϤāĻžāĻšāϞ⧇ āĻāχ āĻĒā§‹āĻ¸ā§āĻŸā§‡āϰ āĻ•āĻŋāϛ⧁ āĻŦāĻŋāώāϝāĻŧ āϜāϟāĻŋāϞ āĻŽāύ⧇ āĻšāϤ⧇ āĻĒāĻžāϰ⧇ ]
āĻ…āύ⧇āϕ⧇āχ āĻŦā§āϝāĻ•ā§āϤāĻŋāĻ—āϤ āĻšā§‹āĻ¸ā§āϟāĻŋāĻ‚ āĻ āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ āχāύāĻ¸ā§āϟāϞ āĻ•āϰ⧇ āĻŦā§āϞāĻ—āĻŋāĻ‚ āĻ•āϰāϛ⧇āύ āĻāĻŦāĻ‚ āĻĒāĻ›āĻ¨ā§āĻĻ⧇āϰ āϕ⧋āύ āĻĢā§āϰāĻŋ āĻĨā§€āĻŽ āχāύāĻ¸ā§āϟāϞ āĻ•āϰ⧇ āĻĻāĻŋāĻŦā§āϝāĻŋ āϏ⧁āĻ¨ā§āĻĻāϰ āĻŦā§āϝāĻ•ā§āϤāĻŋāĻ—āϤ āĻŦā§āϞāĻ— āĻŦāĻžāύāĻŋāϝāĻŧ⧇ āύāĻŋāĻšā§āϛ⧇āύāĨ¤ āϝāĻĻāĻŋ āĻāĻŽāύ āĻšāϝāĻŧ āĻāχ āĻĨā§€āĻŽ āĻ•āĻŋāĻ­āĻžāĻŦ⧇ āĻ•āĻžāϜ āĻ•āϰ⧇ āϤāĻž āϝāĻĻāĻŋ āϜāĻžāύāĻž āĻĨāĻžāϕ⧇ āϤāĻžāĻšāϞ⧇ āφāϰ⧋ āĻŽāϜāĻž āύāĻž ? āχāĻšā§āĻ›āĻž āĻšāϞ⧋ āĻāĻ•āϟ⧁ āϏāĻŽā§āĻĒāĻžāĻĻāύāĻž āĻ•āϰ⧇ āĻĨā§€āĻŽāϟāĻžāϕ⧇ āύāĻŋāĻœā§‡āϰ āĻŽāϤ⧋ āϏāĻžāϜāĻŋāϝāĻŧ⧇ āύāĻŋāϞ⧇āύāĨ¤ āφāĻŽāĻžāϰ āĻŦāĻ•āĻŦāĻ• āĻļ⧁āϰ⧁āϰ āφāϗ⧇ āφāϏ⧁āύ āĻœā§‡āύ⧇ āύ⧇āχ āĻāχ āĻĒā§‹āĻ¸ā§āĻŸā§‡āϰ āωāĻĻā§āĻĻ⧇āĻļā§āϝāϗ⧁āϞ⧋āσ

āĻāĻ•āσ āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ⧇āϰ āĻĨā§€āĻŽ āĻ•āĻŋāĻ­āĻžāĻŦ⧇ āĻ•āĻžāϜ āĻ•āϰ⧇
āĻĻ⧁āχāσ āĻĨā§€āĻŽ āĻĢā§‹āĻ˛ā§āĻĄāĻžāϰ⧇āϰ āϕ⧋āύ āĻĢāĻžāχāϞ⧇āϰ āĻ•āĻžāϜ āĻ•āĻŋ
āϤāĻŋāύāσ āĻĨā§€āĻŽ āϏāĻŽā§āĻĒāĻžāĻĻāύāĻž āĻ•āϰāĻž
āϚāĻžāϰāσ āχāĻ¤ā§āϝāĻžāĻĻāĻŋ :ttt:
Continue reading

āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ⧇ āĻāĻĄāĻŽāĻŋāύ āϞāĻ—āĻŋāύ āĻĒ⧇āϜāϕ⧇ āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āĻ•āϰ⧁āύ āύāĻŋāĻœā§‡āϰ āĻŽāϤ⧋ āĻ•āϰ⧇

āϧāϰ⧁āύ āφāĻĒāύāĻžāϰ āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ āĻŦā§āϞāϗ⧇āϰ(āϏ⧇āϞāĻĢ āĻšā§‹āĻ¸ā§āĻŸā§‡āĻĄ) āϞāĻŋāĻ™ā§āĻ• āϝāĻĻāĻŋ āĻšāϝāĻŧ http://www.mysite.com āϤāĻžāĻšāϞ⧇ āφāĻĒāύāĻžāϰ āĻāĻĄāĻŽāĻŋāύ āĻĒā§āϝāĻžāύ⧇āϞ⧇ āĻĸ⧁āĻ•āĻžāϰ āϞāĻŋāĻ™ā§āĻ• āĻšāĻŦ⧇ āĻāχ āϰāĻ•āĻŽāσ http://www.mysite.com/wp-admin āĨ¤ āĻāχ āĻĒāĻžāϤāĻžāϝāĻŧ āϗ⧇āϞ⧇āχ āĻŦāĻŋāĻļāĻžāϞ āĻāĻ•āϟāĻž āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ⧇āϰ āĻ›āĻŦāĻŋāĨ¤ āφāĻĒāύāĻŋ āϚāĻžāχāϞ⧇āχ āĻ•āĻŋāĻ¨ā§āϤ⧁ āĻāχ āĻ›āĻŦāĻŋ, āĻ›āĻŦāĻŋāϰ āωāĻĒāϰ āĻŽāĻžāωāϏ āύāĻŋāϞ⧇ āϝ⧇ āϟ⧁āĻĒ āϟāĻŋāĻĒ/āϟāĻžāχāĻŸā§‡āϞ(powered by wordpress ) āĻĻ⧇āĻ–āĻžāϝāĻŧ āĻāĻŦāĻ‚ āĻ›āĻŦāĻŋāϟāĻžāϰ āϞāĻŋāĻ™ā§āĻ• (āĻĄāĻŋāĻĢāĻ˛ā§āϟ āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ āϏāĻžāχāĻŸā§‡āϰ āϞāĻŋāĻ™ā§āĻ• āĻĨāĻžāϕ⧇) āχāĻ¤ā§āϝāĻžāĻĻāĻŋ āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āĻ•āϰ⧇ āϏāĻŽā§āĻĒā§‚āĻ°ā§āĻŖ āύāĻŋāĻœā§‡āϰ āĻŽāϤ⧋ āĻ•āϰ⧇ āύāĻŋāϤ⧇ āĻĒāĻžāϰ⧇āύāĨ¤

āĻāϰ āϜāĻ¨ā§āϝ āĻĒā§āϞāĻžāĻ—āĻŋāύ āĻĒāĻžāĻ“āϝāĻŧāĻž āϝāĻžāϝāĻŧ āĻ•āĻŋāĻ¨ā§āϤ⧁ āϝāĻĻāĻŋ āύāĻŋāĻœā§‡āχ āĻļāĻŋāϖ⧇ āĻĢ⧇āϞ⧇āύ āĻ•āĻŋāĻ­āĻžāĻŦ⧇ āĻ•āĻžāϜāϟāĻž āĻ•āϰāϤ⧇ āĻšāĻŦ⧇ āϤāĻžāĻšāϞ⧇ āĻŽāϜāĻžāϟāĻž āĻŦ⧇āĻļāĻŋâ€Ļ āϤāĻžāχ āύāĻž ? āφāϰ āĻšā§āϝāĻžāρ āĻāχ āϧāϰāύ⧇āϰ āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ āϏāĻžāĻĒā§‹āĻ°ā§āϟ āĻ•āϰ⧇ āĻŦāϞ⧇āχ āϕ⧋āϰ āĻĢāĻžāχāϞ⧇āϰ āϕ⧋āύ āϧāϰāύ⧇āϰ āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āύāĻž āĻ•āϰ⧇ āφāĻĒāĻžāύāĻžāϕ⧇ āĻĒā§āϞāĻžāĻ—āĻŋāύ āĻĻāĻŋāϝāĻŧ⧇ āĻŦāĻž āĻĨā§€āĻŽ āĻĨ⧇āϕ⧇ āĻšā§āĻ• āĻ•āϰāĻžāϰ āĻŽāĻžāĻ§ā§āϝāĻŽā§‡ āύāĻŋāĻœā§‡āϰ āχāĻšā§āĻ›āĻžāĻŽāϤ āĻ•āĻŋāϛ⧁ āĻŦāϏāĻŋāϝāĻŧ⧇ āĻĻ⧇āĻ“āϝāĻŧāĻžāϰ āϏ⧁āϝ⧋āĻ— āϰ⧇āϖ⧇āϛ⧇āĨ¤ :C
Continue reading

āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄāĻĒā§āϰ⧇āϏ⧇ āĻĒā§‹āĻ¸ā§āϟ āϰāĻŋāĻ­āĻŋāĻļāύ āĻŦāĻ¨ā§āϧ āĻ•āϰ⧁āύ

āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄāĻĒā§āϰ⧇āϏ⧇ āĻāĻ•āϟāĻž āϏ⧁āĻŦāĻŋāϧāĻž āφāϛ⧇ āϝ⧇ āφāĻĒāύāĻŋ āϝāϤāĻŦāĻžāϰ āϕ⧋āύ āĻĒā§‹āĻ¸ā§āϟ āϏāĻŽā§āĻĒāĻžāĻĻāύāĻž āĻ•āϰāĻŦ⧇āύ āϤāϤ āĻŦāĻžāϰ āĻĒā§‹āĻ¸ā§āϟ āĻŸā§‡āĻŦāĻŋāϞ⧇ āύāϤ⧁āύ āĻāĻ•āϟāĻž row āϤ⧈āϰāĻŋ āĻ•āϰāĻŦ⧇ āĻŽāĻžāύ⧇ āφāĻĒāύāĻžāϰ āĻĒā§āϰāϤāĻŋāĻŦāĻžāϰ⧇āϰ āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āϗ⧁āϞ⧋ āĻ āĻŋāĻ• āĻ āĻžāĻ• āĻŽāϤ⧋ āφāϞāĻžāĻĻāĻž āφāϞāĻžāĻĻāĻž āĻĒā§‹āĻ¸ā§āϟ āĻšāĻŋāϏāĻžāĻŦ⧇ āϏāĻ‚āϰāĻ•ā§āώāĻŖ āĻ•āϰāĻŦ⧇āĨ¤ āϝāĻžāϰāĻž āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄāĻĒā§āϰ⧇āϏ āĻŦā§āϞāĻ— āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻ•āϰ⧇āύ āϤāĻžāϰāĻž āϝāĻĻāĻŋ āĻāĻ•āϟ⧁ āϖ⧇āϝāĻŧāĻžāϞ āĻ•āϰ⧇āύ āϤāĻžāĻšāϞ⧇ āĻĻ⧇āĻ–āĻŦ⧇āύ āĻĒā§‹āĻ¸ā§āϟ āϏāĻŽā§āĻĒāĻžāĻĻāύāĻž āĻ•āϰāϤ⧇ āϗ⧇āϞ⧇ āύāĻŋāĻšā§‡āϰ āĻĻāĻŋāϕ⧇ “Post Revisions” āύāĻžāĻŽā§‡ āĻāĻ•āϟāĻž āĻŦā§āϞāĻ• āĻĒāĻžāĻŦ⧇āύāĨ¤ āĻāϟāĻž āĻŦ⧇āĻļ āϏ⧁āĻŦāĻŋāϧāĻžāϰ āĻ•āĻžāϰāĻŖ āφāĻĒāύāĻŋ āϚāĻžāχāϞ⧇ āφāĻĒāύāĻžāϰ āφāϗ⧇āϰ āϕ⧋āύ āϰāĻŋāĻ­āĻŋāĻļāύ⧇āϰ āϰ⧋āϞ āĻŦā§āϝāĻžāĻ• āĻ•āϰāϤ⧇ āĻĒāĻžāϰ⧇āύāĨ¤ āĻšāϝāĻŧāϤ⧋ āϭ⧁āϞ āĻ•āϰ⧇ āϕ⧋āύ āϏāĻŽā§āĻĒāĻžāĻĻāύāĻž āĻ•āϰāϞ⧇āύ āφāĻŦāĻžāϰ āφāϗ⧇āϰ āĻ…āĻŦāĻ¸ā§āĻĨāĻžāϝāĻŧ āĻĢāĻŋāϰ⧇ āφāϏāϞ⧇āύāĨ¤ āĻāϰ āĻ…āϏ⧁āĻŦāĻŋāϧāĻžāĻ“ āφāϛ⧇ āϝ⧇āĻŽāύ, āĻĒā§‹āĻ¸ā§āϟ āϏāĻ‚āĻ–ā§āϝāĻžāϰ āĻŦāĻžāĻĄāĻŧāĻžāϰ āϏāĻžāĻĨ⧇ āϏāĻžāĻĨ⧇ āĻāχ āϰāĻ•āĻŽ āĻ…āϏāĻ‚āĻ–ā§āϝ āϰāĻŋāĻ­āĻŋāĻļāύ āĻĄāĻžāϟāĻžāĻŦ⧇āĻœā§‡ āϏ⧇āχāĻ­ āĻšāĻŦ⧇āĨ¤ āωāĻ˛ā§āϞ⧇āĻ–ā§āϝ āϝ⧇ āĻĒā§āϰāϤāĻŋ āϰāĻŋāĻ­āĻŋāĻļāύ⧇āϰ āĻĒā§‹āĻ¸ā§āĻŸā§‡āϰ āϏāĻžāĻĨ⧇ āϏāĻ‚āĻļā§āϞāĻŋāĻˇā§āϟ āϏāĻŦ āĻ•āĻŋāϛ⧁ āϏāĻ‚āϰāĻ•ā§āώāĻŖ āĻšāϝāĻŧāĨ¤ āϤāĻžāχ āϝāĻžāĻĻ⧇āϰ āĻĄāĻžāϟāĻžāĻŦ⧇āϜ āϏāĻžāχāĻœā§‡āϰ āϞāĻŋāĻŽāĻŋāĻŸā§‡āĻļāύ āϰāϝāĻŧ⧇āϛ⧇ āϤāĻžāϰāĻž āϚāĻžāχāϞ⧇ āĻāχ āϰāĻŋāĻ­āĻŋāĻļāύ āĻ•āϰāĻžāϰ āĻŦā§āϝāĻŦāĻ¸ā§āĻĨāĻž/āĻ…āĻĒāĻļāύ āĻŦāĻ¨ā§āϧ āĻ•āϰ⧇ āĻĻāĻŋāϤ⧇ āĻĒāĻžāϰ⧇āύāĨ¤ Continue reading

āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ⧇ āϞāĻŋāϖ⧁āύ āĻŽā§āϝāĻžāĻĨ⧇āĻŽā§‡āϟāĻŋāĻ•ā§āϝāĻžāϞ āχāϕ⧁āϝāĻŧ⧇āĻļāύ

āĻĒā§āϰāϤāĻŋāĻĻāĻŋāύ āϕ⧋āύ āύāĻž āϕ⧋āύ āϏāĻŽāĻ¸ā§āϝāĻžāϰ āϏāĻŽā§āĻŽā§‚āĻ–ā§€āύ āĻšāĻšā§āĻ›āĻŋ āφāϰ āĻāĻ•āϟ⧁ āϗ⧁āĻ—āϞ āĻ•āϰ⧇āχ āϤāĻžāϰ āϏāĻŽāĻžāϧāĻžāύ āĻĒ⧇āϝāĻŧ⧇ āϝāĻžāĻšā§āĻ›āĻŋāĨ¤ āĻ“āϝāĻŧ⧇āĻŦ⧇ āĻŽā§āϝāĻžāĻĨāĻŽā§‡āϟāĻŋāĻ•ā§āϝāĻžāϞ āχāϕ⧁āϝāĻŧ⧇āĻļāύ āĻĒā§āϰāĻ•āĻžāĻļ āĻ•āϰāĻžāϰ āϜāĻ¨ā§āϝ āĻāĻ•āϟāĻž āĻ­āĻžāϞ⧋ āĻĒāĻŋāĻāχāϚāĻĒāĻŋāϰ āϞāĻžāχāĻŦā§āϰ⧇āϰ⧀ āĻĒ⧇āϝāĻŧ⧇āĻ›āĻŋāϞāĻžāĻŽ āĻ…āύ⧇āĻ• āĻĻāĻŋāύ āφāϗ⧇āĨ¤ āύāĻžāĻŽā§‡ PhpMathPublisherāĨ¤ āĻāϟāĻŋ āϚāĻžāχāϞ⧇ āϝ⧇ āϕ⧇āω āϤāĻžāϰ āύāĻŋāĻœā§‡āϰ āϏāĻžāχāĻŸā§‡ āϝ⧁āĻ•ā§āϤ āĻ•āϰāϤ⧇ āĻĒāĻžāϰ⧇āύāĨ¤ āĻ•āĻžāĻ°ā§āϝāĻ•ā§āϰāĻŽāϟāĻž āĻāχ āϰāĻ•āĻŽ, āφāĻĒāύāĻŋ āĻāĻ•āϟāĻž āύāĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āϟ āĻĢāϰāĻŽā§āϝāĻžāĻŸā§‡ āϞāĻŋāĻ–āĻŦ⧇āύāĨ¤ āϝ⧇āĻŽāύ āϧāϰ⧁āύ a+b = d āϝāĻž āĻĒāϰ⧇ āĻāĻ• āĻŦāĻž āĻāĻ•āĻžāϧāĻŋāĻ• āχāĻŽā§‡āϜ āφāĻ•āĻžāϰ⧇ āϕ⧋āύ āĻĄāĻŋāϰ⧇āĻ•ā§āϟāϰ⧀āϤ⧇ āϏāĻ‚āϰāĻ•ā§āώāĻŋāϤ āĻšāĻŦ⧇āĨ¤ āĻ…āύāϞāĻžāχāύ āĻĄā§‡āĻŽā§‹ āĻĻ⧇āĻ–āϤ⧇ āĻĒāĻžāϰ⧇āύ āĻāĻ–āĻžāύ āĻĨ⧇āϕ⧇āĨ¤ āĻāĻ›āĻžāĻĄāĻŧāĻž āĻāχ āϞāĻžāχāĻŦā§āϰ⧇āϰ⧀āϟāĻŋ āϝ⧇ āϏāĻŦ āĻŽā§āϝāĻžāĻĨ⧇āĻŽā§‡āϟāĻŋāĻ•ā§āϝāĻžāϞ āĻ•āĻŽāĻžāĻ¨ā§āĻĄ (āχāϕ⧁āϝāĻŧ⧇āĻļāύ āϞ⧇āĻ–āĻžāϰ āϜāĻ¨ā§āϝ, āĻ•āύāϏ⧇āĻĒā§āϟ āĻ…āύ⧇āĻ•āϟāĻž āϞ⧇āĻŸā§‡āĻ•ā§āϏ āĻāϰ āĻŽāϤ⧋) āϏāĻžāĻĒā§‹āĻ°ā§āϟ āĻ•āϰ⧇ āϤāĻžāϰ āϞāĻŋāĻ¸ā§āϟ āĻāĻ–āĻžāύ⧇ āĻĒāĻžāĻŦ⧇āύāĨ¤

āϏāĻŦ āĻšā§‡āϝāĻŧ⧇ āĻŽāϜāĻžāϰ āĻŦā§āϝāĻžāĻĒāĻžāϰ āĻšāϞ⧋ āĻ•āĻŋāϛ⧁āĻĻāĻŋāύ āφāϗ⧇ āĻāχ āĻĻ⧇āĻ–āϞāĻžāĻŽ āĻāχ āϞāĻžāχāĻŦā§āϰ⧇āϰ⧀ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻ•āϰ⧇ āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ⧇āϰ āϜāĻ¨ā§āϝ āĻĻ⧁āχāϟāĻŋ āĻĒā§āϞāĻžāĻ—āĻŋāύāĻ“ āĻĒāĻžāĻ“āϝāĻŧāĻž āϝāĻžāĻšā§āϛ⧇āĨ¤ āĻ…āĻ‚āĻ• āĻŦāĻž āχāϕ⧁āϝāĻŧ⧇āĻļāύ āύāĻŋāϝāĻŧ⧇ āϝāĻžāϰāĻž āĻŦā§āϞāĻ— āϞāĻŋāĻ–āϤ⧇ āφāĻ—ā§āϰāĻšā§€ āϤāĻžāĻĻ⧇āϰ āϜāĻ¨ā§āϝ āφāĻļāĻž āĻ•āϰāĻŋ āĻāχ āĻĒā§āϞāĻžāĻ—āĻŋāύ āĻĻ⧁āχāϟāĻŋ āĻŦ⧇āĻļ āĻ•āĻžāĻœā§‡ āĻĻāĻŋāĻŦ⧇āĨ¤

New theme “Chitra2009”

For somedays I was thinking to make a new wordpress theme for my own blog and  I did at last. My new theme is live now though it’s not completed yet but working fine. I gave my theme name “Chitra2009” as the name of river Chitra . I like my theme and hope u will like this. The theme is little bit special as it loads faster and ajax based. Max widgets are ajaxified and the theme specially supports some popular plugins. I have used jQuery as js library and for ajax works. I got the design concept from  jquery.com and prothom-aloblog.com.

Still I need to do many thing. BTW, there is a special feature for bengali community as the theme can be used for bangla unicode blog too (But for personal blog, I didn’t think multi user blog). As bengali fonts are small , there is a option to write bangla and english in same post with same font size in frontend with a special tag. Even the whole post can be mark as bangla so that the title and post text every things is shown in large bangla font.

I want to make this theme free for all and it will be released under GPL or some thing like that at the end of feb,2009. I want your kind feedback to improve it.

Thanks,
Manchumahara

āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄāĻĒā§āϰ⧇āϏ⧇ āϕ⧋āύ āĻĒ⧇āĻœā§‡āϰ āϜāĻ¨ā§āϝ āĻ•āĻžāĻ¸ā§āϟāĻŽ āĻŸā§‡āĻŽāĻĒā§āϞ⧇āϟ āĻĢāĻžāχāϞ

āύ⧋āϟāσ āĻāχ āĻĒā§‹āĻ¸ā§āϟ āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ ⧍.ā§­ āĻāϰ āϜāĻ¨ā§āϝ āϞ⧇āĻ–āĻž āϤāĻŦ⧇ ⧍.ā§Ŧ.x āĻ āĻ•āĻžāϜ āĻ•āϰāĻŦ⧇āĨ¤
āϚāĻžāχāϞ⧇ āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄāĻĒā§āϰ⧇āϏāϕ⧇ āϕ⧋āύ āϏāĻŋāĻāĻŽāĻāϏ(āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ āĻāĻ•āϟāĻž āϏāĻŋāĻāĻŽāĻāϏ āχ āϤāĻŦ⧇ āϤāĻž āĻŦā§āϞāϗ⧇āϰ āϜāĻ¨ā§āϝ āĻŦāĻŋāĻļ⧇āώ āĻ­āĻžāĻŦ⧇ āϤ⧈āϰāĻŋ) āĻŽāϤ⧋ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻ•āϰāĻž āϝāĻžāϝāĻŧāĨ¤ āϧāϰ⧁āύ āφāĻĒāύāĻŋ āφāϞāĻžāĻĻāĻž āĻāĻ•āϟāĻž āĻĒ⧇āϜ āϤ⧈āϰāĻŋ āĻ•āϰāϤ⧇ āϚāĻžāύ āϝ⧇āĻ–āĻžāύ⧇ āχāĻšā§āĻ›āĻž āĻŽāϤ⧋ āϕ⧋āϝāĻŧāĻžāϰ⧀ āĻ•āϰ⧇ āĻĄāĻžāϟāĻž āĻļā§‹ āĻ•āϰāĻŦ⧇āύāĨ¤ āĻ•āĻžāϜāϟāĻž āĻ•āĻŋāĻ­āĻžāĻŦ⧇ āĻ•āϰāĻž āϝ⧇āϤ⧇ āĻĒāĻžāϰ⧇ āϤāĻž āύāĻŋāϝāĻŧ⧇āχ āφāϞ⧋āϚāύāĻž āĻ•āϰāϤ⧇ āϚāĻžāχāĻ›āĻŋāĨ¤

āĻĒā§āϰāĻĨāĻŽā§‡ āφāĻĒāύāĻžāϰ āĻĨā§€āĻŽā§‡ āĻĢā§‹āĻ˛ā§āĻĄāĻžāϰ⧇ āĻāĻ•āϟāĻž āύāϤ⧁āύ āĻĢāĻžāχāϞ āϝ⧁āĻ•ā§āϤ āĻ•āϰāϤ⧇ āĻšāĻŦ⧇āĨ¤ āϧāϰ⧁āύ blog.php. āĻāĻ–āύ āĻĢāĻžāχāϞāϟāĻž āĻ“āĻĒ⧇āύ āĻ•āϰ⧁āύ āφāϰ āĻĒā§āϰāĻĨāĻŽā§‡āχ āϞāĻŋāϖ⧁āύ
/*
Template Name: Blog Template
*/

Template Name: Blog Template āĻāχ āϞāĻžāχāύ āĻāϰ āĻ…āĻ°ā§āĻĨ āĻšāϞ⧋ āĻāχ āĻŸā§‡āĻŽāĻĒā§āϞ⧇āϟ āĻĢāĻžāχāϞāϟāĻž āϕ⧋āύ āĻŦāĻŋāĻļ⧇āώ āĻĒ⧇āĻœā§‡āϰ āϜāĻ¨ā§āϝ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻ•āϰāĻž āϝ⧇āϤ⧇ āĻĒāĻžāϰ⧇āĨ¤ āĻĄāĻŋāĻĢāĻ˛ā§āϟ āϕ⧋āύ āĻĒ⧇āĻœā§‡ (āĻ“āϝāĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āϰ⧇āϏ⧇āϰ āĻāĻĄāĻŽāĻŋāύ āĻĒā§āϝāĻžāύ⧇āϞ āĻĨ⧇āϕ⧇ āϝ⧇ āĻĒ⧇āϜ āϤ⧈āϰāĻŋ āĻ•āϰāĻž āϝāĻžāϝāĻŧ) āĻĻ⧇āĻ–āĻžāύ⧋āϰ āϜāĻ¨ā§āϝ āĻĨā§€āĻŽā§‡āϰ page.php āĻĢāĻžāχāϞ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻ•āϰāĻž āĻšāϝāĻŧāĨ¤ āϝāĻĻāĻŋ āφāĻĒāύāĻžāϰ āĻĨā§€āĻŽ āĻĢā§‹āĻ˛ā§āĻĄāĻžāϰ⧇āϰ āϭ⧇āϤāϰ āĻāĻŽāύ āϕ⧋āύ āĻĢāĻžāχāϞ āĻĨāĻžāϕ⧇ āϝāĻžāϰ āĻļ⧁āϰ⧁āϤ⧇ āωāĻĒāϰ⧇āϰ āĻŽāϤ⧋ āϕ⧋āĻĄ āϞ⧇āĻ–āĻž āĻĨāĻžāϕ⧇ āϤāĻžāĻšāϞ⧇ āϏ⧇āϟāĻž āϕ⧋āύ āϕ⧋āύ āĻĒ⧇āĻœā§‡āϰ āϜāĻ¨ā§āϝ āĻŸā§‡āĻŽāĻĒā§āϞ⧇āϟ āĻĢāĻžāχāϞ āĻšāĻŋāϏāĻžāĻŦ⧇ āφāĻĒāύāĻŋ āϏāĻŋāϞ⧇āĻ•ā§āϟ āĻ•āϰāϤ⧇ āĻĒāĻžāϰāĻŦ⧇āύāĨ¤
Continue reading

Export wordpress mu db from localhost to live

My maximum blogs are related to my problems that I face while working with diff projects. Yesterday I was working with wordpress mu. Hope you may know that wp mu can be installed in two diff ways.

  • blog.yourdomain.com
  • yourdomain.com/blog.

As I was using localhost I used yourdomain.com/blog though subdomain can be configured in localhost. 🙂

One thing I don’t like about wordpress is it saved siteurl and domain path name in db. I worked with joomla and phpbb. They use relative url. No need to think about the site url. Continue reading

Conflict between WP Security scanner plugin and Avatar Display

I think you are not clear yet about my post title. But I am posting this because I faced this problem in my blog. I used Gravatar to show comment author’s avatar in my blog’s comment page. But for some days avatar was not displayed in comment page and it’s was really big pain for me why the avatar was not showing ???? 🙁 . I checked the avatar display setting and didn’t find any problem there. At last I lost hope to solve this problem. One thing is I like to solve problem and max time I am passionate to solve my problems 😀 .

Today, at noon I had a good sleep and when I woke up, some thing came to my mind about my blog. I got the solution about my problem. Currently I am using 100 plugins(both active and inactive) in blog and WP Security Scan 2.3 is one of theme. Wp Security Scan has a feature that it can hide the wp version. 😛 Continue reading