Moin,
mir ist aufgefallen das es Besucher gibt die durch die "Suche" nicht das finden was gesucht wurde. In meiner search.php (siehe unten) erfolgt auch keinerlei Ausgabe. Wenn der Begriff, das Wort, Artikel etc. nicht gefunden wurde, "glänzt" die search.php mit einer leeren Seite. Ich würde das gern ändern, einen kurzen Text einbauen, eventuell ein paar Links etc. Frage ist nur wo und vor allem wie mache das??? Meine search.php sieht wie folgt aus:
PHP
<?php get_header(); ?>
<div class="wrap background">
<div id="content" class="right-col wrap">
<div class="breadcrumb-col"><?php get_breadcrumbs(); ?></div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$category = get_the_category($post->ID);
if ($category[0]->cat_ID == 80) continue;
?>
<!--- Post Starts -->
<div class="post wrap">
<div class="blog-post">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php $thumb = get_post_meta($post->ID, 'Main Product Photo', $single = true); ?>
<?php if($thumb !== '') { ?>
<div class="alignleft">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><img style="border: none;" alt="<?php the_title(); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&h=125&w=125&zc=1" /></a>
</div>
<?php } else { echo ''; } ?>
<?php the_content_limit(150); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" class='button'>Zum Artikel...</a>
</div>
</div>
<!--- Post Ends -->
<?php endwhile; ?>
<div class="more_posts">
<h2><?php next_posts_link(__('« Ältere Beiträge')); ?> <?php previous_posts_link (__('Neuere Beiträge »')); ?></h2>
</div>
<?php endif; ?>
</div>
<?php include('includes/blog-sidebar.php');?>
</div>
<?php get_footer(); ?>
Alles anzeigen
Würde mich sehr freuen wenn mir jemand helfen könnte ;-)