Wordpress sitemde arama yaparken Türkçe kelime aranınca sonuçlar çıkmıyor.Mesela örnek aranan kelime "karışık" kelimesi arama sonucu "kar%C4%B1%C5%9F%C4%B1k" gibi çıkıyor ve sonuç bulunamıyor.Konu hakkında yardımlarınızı bekliyorm.Sayfanın tam olarak kodlaması şu şekil;
<?php
$options = get_option('wptube2');
get_header();
if(isset($_GET['order']) && !empty($_GET['order']))
{
$order = $_GET['order'];
switch($order)
{
case 'date_old' : $orderby = '&orderby=date&order=ASC';
break;
case 'liked' : $orderby = '&l_sortby=post_likes&l_orderby=desc';
break;
case 'viewed' : $orderby = '&v_sortby=views&v_orderby=desc';
break;
case 'commented' : $orderby = '&orderby=comment_count';
function comment_count_orderby( $orderby ) {
return "comment_count DESC";
}
add_filter('posts_orderby', 'comment_count_orderby');
break;
default : $orderby = '&orderby=date';
break;
}
}
if ( get_option('permalink_structure') != '' ) {
if(is_search()){
$order_url = get_search_link().'?order=';
}
} else {
if(is_search()){
$order_url = get_search_link().'&order=';
}
}
?>
<div id="wrapper">
<div id="mainbody">
<?php if ( ($options['hide_sidebar']['3'] == 1) && ($options['post_layout_view'] == 'thumbnail') ) { ?>
<?php } else { get_sidebar(); } ?>
<div id="content">
<div class="sortby_container box-shadow-inset">
<?php if ($options['post_layout_view'] == 'both') { ?>
<a href="#_" class="switch_thumb swap">
<?php _e('Switch View','wpt');?>
</a>
<?php } ?>
<div id="sortbybox">
<ul class="menu">
<li><a href="#_" id="sort_link" onclick="javascript:showlayer('sm_1')">
<?php _e('Sort by ', 'wpt') ?>
</a>
<ul class="submenu" id="sm_1">
<li><a href="<?php echo $order_url; ?>commented">
<?php _e('Most Commented', 'wpt') ?>
</a></li>
<li><a href="<?php echo $order_url; ?>liked">
<?php _e('Most Liked', 'wpt') ?>
</a></li>
<li><a href="<?php echo $order_url; ?>viewed">
<?php _e('Most Viewed', 'wpt') ?>
</a></li>
<li><a href="<?php echo $order_url; ?>date_new">
<?php _e('Newest First', 'wpt') ?>
</a></li>
<li><a href="<?php echo $order_url; ?>date_old">
<?php _e('Oldest First', 'wpt') ?>
</a></li>
</ul>
</li>
</ul>
</div>
<div class="sort_info_text">
<?php $count = 'No'; if (have_posts()) : $count = $wp_query->found_posts; ?>
<?php printf(_n("%d result", "%d results", $count,'wpt'),$count); ?>
<?php _e('in search for ‘','wpt'); the_search_query(); _e('’','wpt'); ?>
<?php endif ?>
<?php if($order=='commented') : ?>
<?php _e('- Most Commented', 'wpt') ?>
<?php endif; ?>
<?php if($order=='liked') : ?>
<?php _e('- Most Liked', 'wpt') ?>
<?php endif; ?>
<?php if($order=='viewed') : ?>
<?php _e('- Most Viewed', 'wpt') ?>
<?php endif; ?>
<?php if($order=='date_new') : ?>
<?php _e('- Newest First', 'wpt') ?>
<?php endif; ?>
<?php if($order=='date_old') : ?>
<?php _e('- Oldest First', 'wpt') ?>
<?php endif; ?>
</div>
</div>
<div class="clearboth"></div>
<?php query_posts($query_string.$orderby); if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
if ($options['post_layout_view'] == 'thumbnail'):
echo '<ul class="thumb_view">';
elseif ($options['post_layout_view'] == 'detail'):
echo '<ul class="display">';
elseif ($options['post_layout_view'] == 'both'):
echo '<ul class="display thumb_view">';
endif;
?>
<?php if ( in_category($options['non_video_category'])) : ?>
<?php get_template_part( 'post', 'other' ); ?>
<?php else : ?>
<?php get_template_part( 'post', 'video' ); ?>
<?php endif; ?>
</ul>
<?php endwhile; ?>
<?php wptube2_pagination($pages = '', $range = 2); ?>
</div>
<?php else : ?>
<h3>
<?php _e('Your search', 'wpt'); ?>
<strong>"<?php echo get_search_query(); ?>"</strong>
<?php _e('did not match any documents.', 'wpt'); ?>
</h3>
<div class="search_results_none">
<h4>
<?php _e('Suggestions:', 'wpt'); ?>
</h4>
<ul>
<li>
<?php _e('Make sure all words are spelled correctly.', 'wpt'); ?>
</li>
<li>
<?php _e('Try different keywords.', 'wpt'); ?>
</li>
<li>
<?php _e('Try more general keywords.', 'wpt'); ?>
</li>
</ul>
</div>
<?php get_search_form() ?>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>