Hi,
We have received your query and it is now being processed. We will get back to you on this forum as soon as we can.
Regards,
BestWebSoft Support Team
Hi snow_walker,
Unfortunately, this functionality is presently not available. The plugin does not impact search mechanisms work. You can only search by the default language. However, you can request paid customization if you want, and provide all the details on our support forum http://support.bestwebsoft.com/. This way, we could develop the functionality that would match all of your requirements.
Regards,
BestWebSoft Support Team
Hi.
We are glad that everything is fine now. Feel free to contact our support team with any questions in future.
Regards,
BestWebSoft Support Team
same situation here, and a simple solution provided: (in your current search.php)
<?php
//get language
$pLang = 'en_US';
if(stristr($_SERVER['REQUEST_URI'], '/zh_CN/')){
$pLang = 'zh_CN';
} elseif (stristr($_SERVER['REQUEST_URI'], '/zh_TW/')){
$pLang = 'zh_TW';
}
//query plugin database
global $wpdb;
if($pLang != 'en_US'){
$postids = $wpdb->get_col( "SELECT post_ID FROM wp_mltlngg_translate WHERE post_content LIKE '%$s%' OR post_title LIKE '%$s%' AND language = '$pLang'", 0);
if ( count($postids) > 0 ) {
$searchkey = array( 'post_type' => array('post', 'page'), 'post__in' => $postids, 'posts_per_page' => -1 );
} else {
$searchkey = 's='.$s.'&showposts=-1';
}
} else {
$searchkey = 's='.$s.'&showposts=-1';
}
//search with arguments
$allsearch = &new WP_Query($searchkey);
$key = wp_specialchars($s, 1);
$count = $allsearch->post_count;
// start the loop
while ( $allsearch -> have_posts() ) : $allsearch -> the_post();
get_template_part( 'content', 'search' );
endwhile;
?>
Hi horan,
Thank you for your message.
Unfortunately, there is no overall solution for this problem, as the search.php file’s content is different in each theme. We’ll think about it and if we find a solution, we’ll add this functionality in the next update.
Regards,
BestWebSoft Support Team