Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/09/2009, 05:46
Hamwe
 
Fecha de Ingreso: abril-2008
Mensajes: 70
Antigüedad: 16 años
Puntos: 0
Buscador wordpress

Buenas instalé el plugin search unleashed y lo configuré pero cuando ahgo la búsqueda solo me muestra 2 resultados.

Tengo un archivo llamado searchform.php con el código
Código PHP:
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<div><input type="text" onblur="if (this.value == '') {this.value = 'Buscar';}" onfocus="if(this.value == 'Buscar') {this.value = '';} value="Buscar" name="s" id="searchbox" />
<input class="searchbutton" type="submit" id="searchsubmit" value="Busca" />
</div>
</form>
y otro llamado resultados.php
Código PHP:
<?php get_header(); ?>

    <div id="content" class="narrowcolumn">

    <?php if (have_posts()) : ?>

        <h2 class="pagetitle">Resultados da busca</h2>

        <div class="navigation">
            <div class="alignleft"><?php next_posts_link('&laquo; Older Entries'?></div>
            <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;'?></div>
        </div>
<p><?php echo $wp_query->post_count?>
resultados encontrados para tu búsqueda:
<strong><?php the_search_query(); ?></strong>.</p>

<!--aquí comienza The Loop -->


<?php while (have_posts()) : the_post(); ?>
<div class="post">
     <h3 id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark"
title="Permanent Link to <?php the_title_attribute(); ?>">
<?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
 <p class="postmetadata">
Posted in <?php the_category(', '?> </p>
<p><?php the_permalink();?></p></div>

<?php endwhile; ?> <!-- Fin de The Loop -->



        <div class="navigation">
            <div class="alignleft"><?php next_posts_link('&laquo; Older Entries'?></div>
            <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;'?></div>
        </div>

    <?php else : ?>

        <h2 class="center">Non se atoparon entradas. Int�ntao con outra busca</h2>
        <?php include (TEMPLATEPATH '/searchform.php'); ?>

    <?php endif; ?>

    </div>

<?php include(TEMPLATEPATH '/sidebar_right.php'); ?>

<?php get_footer(); ?>
Resultados.php muestra bien 10 resultados el problema es que no consigo enlazar el botón enviar con el resultados.php, cuando cambio el action no me hace ni caso

Alguna ayuda¿?

Gracias