Hallo alle zusammen,
Ich hab folgendes problem das ich einfach nicht in den Griff bekomme.
Und zwar wenn ich in mein Suche Feld einen Begriff eingebe listet mir mein Wordpress alle Beiträge auf egal ob dieses Wort in dem Beitrag vorkommt oder nicht!
Woran kann das liegen ???
Anbei mein code ...
PHP
<?php if (have_posts()) : ?>
<div class="title">Search Results</div>
<div class="searchdetails"> Search results for "<?php echo ""."$s"; ?>" </div>
<?php $top_query = new WP_Query('showposts=1000'); ?>
<?php while($top_query->have_posts()) : $top_query->the_post();
$do_not_duplicate = $post->ID; ?>
<a class="title" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
<?php _e("("); ?> <?php the_category(' and') ?> <?php _e(")"); ?>
<?php the_excerpt() ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">( click here to see the full post! )</a>
<?php endwhile; ?>
<?php else : ?>
<form id="searchform" method="get" action="<?php bloginfo('url'); ?>">
<center>
Sorry no post matched your criteria you may search the blog again!
<input type="text" class="input" name="s" id="search" size="40" />
<input name="submit" type="submit" tabindex="5" value="<?php _e('SEARCH'); ?>" /></p>
</center>
</form>
<?php endif; ?>
Alles anzeigen
Wäre super wenn mir jemand helfen könnte!!!
Hab schon im Forum gesucht aber nicht die passende anrtwort gefunden :(