by Guest » Tue Dec 02, 2008 3:12 pm
Hello,
I also have a problem with the search function of this wonderfull plugin.
I use actual WP 2.6.5.
Everything works fine instead of search function.
My theme is using the following code inside "header.php":
[code=php]
<form id="searchform" method="get" action="<?php bloginfo('url'); ?>">
<div>
<label for="s"><?php _e('Search'); ?></label>
<input type="text" name="s" id="s" size="15" value="Livesearch" onblur="if(this.value=='') this.value='Livesearch';" onfocus="if(this.value=='Livesearch') this.value='';"/>
<button type="submit"><img src="<?php bloginfo('template_url'); ?>/images/cerca.jpg" alt="search" /></button><!--<input type="submit" value="<?php _e('Search]'); ?>" />-->
</div>
</form>
[/code]
Additional I have "search.php" with this code
[code=php]
<div class="post" id="post-<?php the_ID(); ?>">
<div class="posttitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="post-info">
Written in <?php the_category(', ') ?> on <?php the_time('d.m.Y') ?> <?php edit_post_link('edit', '', ''); ?> | <?php comments_popup_link('0 comments »', ' comment »', '% comments »'); ?> </p>
</div>
<div class="entry">
<?php the_excerpt(); ?>
</div>
<?php comments_template(); ?>
</div>
[/code]
Regardless in which language you are reading the content at the moment, if you are searching for a keywoard there will be always results presented in the default language.
If you then press another language flag for specific results in the desired language, you will still get the desired results presented in right language.
Now my question is how you can modify so that you must't switch?
If you are reading German and are searching for a keyword the search results should be also in German language.
Please help me. I don't find the right way on my own.
Thank you in advance.
Regards
newbie_2004