şimdi site içinde arama yapınca siteadi/?s=msn oluyor adres ve ana sayfaya dönüyor yani giriş sayfasına dönüyor. Nasıl ayarlayabiliriz bunu acaba ?
Arama formu (searchform.php)
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<label class="hidden" for="s"><?php _e('Search for:'); ?></label>
<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>--
Arama Sonuçları (search.php)
<?php get_header(); ?>
<div class="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="item">
<div class="post">
<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("thumbs"); echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a></p>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<div class="author"><b>Title:</b> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div>
<div class="author"><b>Lenght:</b> <?php $values = get_post_custom_values("lenght"); echo $values[0]; ?></div>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div>
<?php else : ?>
<h1 class="title">Not Found</h1>
<div class="postinfo">
</div>
<div class="post">
<p>Sorry, but you are looking for something that isn't here.</p>
</div>
<div class="postbottom">
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>