Ich weiß nicht, wo/was die Fehler sind - ich brauche eure Hilfe!
Gruß
PHP
<?php get_header(); ?>
<div id="primary" class="single-post">
<div class="inside">
<?php if (have_posts()) : ?>
<div class="primary">
<ul class="dates">
<?php while (have_posts()) : the_post(); ?>
<li> <span class="date">
<?php the_time('n.j.y') ?>
</span> <a href="<?php the_permalink() ?>">
<?php the_title(); ?>
</a> posted in
<?php the_category(', ') ?>
</li>
<?php $results++; ?>
<?php endwhile; ?>
</ul>
<div class="navigation">
<div class="left">
<?php next_posts_link('« Previous Entries') ?>
</div>
<div class="right">
<?php previous_posts_link('Next Entries »') ?>
</div>
</div>
</div>
<div class="secondary">
<h1>Search Results</h1>
<div class="featured">
<p>You searched for “<?php echo wp_specialchars($s, 1); ?>”
at
<?php bloginfo('name'); ?>
. There were
<?php
if (1 == $results) echo "one result found. It must be your lucky day.";
else echo $results . " results found.";
?>
</p>
</div>
</div>
<div class="clear"></div>
<?php else : ?>
<div class="primary">
<ul class="dates">
<?php while (have_posts()) : the_post(); ?>
<li>Sorry, wir haben leider nix für dich gefunden!</li>
</ul>
</div>
<div class="secondary">
<h1>Search Results</h1>
<div class="featured">
<p>You searched for “<?php echo wp_specialchars($s, 1); ?>”
at
<?php bloginfo('name'); ?>
. There were 0 results.
</p>
</div>
</div>
<div class="clear"></div>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen