Ok i got answer by my own
I just put the single file condition above the file template
Here is my code:
add_filter('template_include', 'foo_template_chooser');
function foo_template_chooser($template){
global $wp;
$plugindir = dirname(__FILE__);
if( $wp->query_vars["post_type"] == 'my_items' && is_single() ){
if(file_exists(TEMPLATEPATH . '/my_items/single-my_items.php')) {
return locate_template('my_items/single-my_items.php');
} else {
return $plugindir . '/template/single-my_items.php';
}
}
if( $wp->query_vars["post_type"] == 'my_items' ){
if(file_exists(TEMPLATEPATH . '/my_items/archive-my_items.php')) {
return locate_template('my_items/archive-my_items.php');
} else {
return $plugindir . '/template/my_items.php';
}
if(file_exists(TEMPLATEPATH . '/my_items/my_items.php')) {
return locate_template('my_items/my_items.php');
} else {
return $plugindir . '/template/my_items.php';
}
}
if ( is_tax('my_tags') ) {
if(file_exists(TEMPLATEPATH . '/my_items/taxonomy-my_tags.php')) {
return locate_template('my_items/taxonomy-my_tags.php');
} else {
return $plugindir . '/template/taxonomy-my_tags.php';
}
}
return $template;
}
And its working perfectly