Support » Plugins » Search Results Issue

  • I’m having an issue with the search results page on Try typing “the” into the search and everything shows up as planned. However when you try to click on page 2, It says the page does not exist. This really makes no sense to me because this used to work just fine, and still does on my local machine. I have no idea as to what could cause this problem, maybe a plugin? I really have no idea and any help would be greatly appreciated.

    <?php get_header(); ?>
    		<?php if (have_posts()) : ?>
    			<div id="primary">
     			<?php $post = $posts[6]; // Hack. Set $post so that the_date() works. ?>
    			<?php /* If this is a category archive */ if (is_category()) { ?>
    				<h1>Archive for the ‘<?php single_cat_title(); ?>’ Category</h1>
    			<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    				<h1>Posts Tagged ‘<?php single_tag_title(); ?>’</h1>
    			<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    				<h1>Archive for <?php the_time('F jS, Y'); ?></h1>
    			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    				<h1>Archive for <?php the_time('F, Y'); ?></h1>
    			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    				<h1 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
    			<?php /* If this is an author archive */ } elseif (is_author()) { ?>
    				<h1 class="pagetitle">Author Archive</h1>
    			<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    				<h1 class="pagetitle">Blog Archives</h1>
    			<?php } ?>
                <div class="line"> <img src="<?php bloginfo('template_url'); ?>/images/line.png"  /> </div>
    			<?php while (have_posts()) : the_post(); ?> <br />
    				<div class="search">
                      <div id="search-entry"> <a href="<?php the_permalink(); ?>">
                        <?php the_post_thumbnail(); ?>
                        <div id="excerpt">
                          <h2><a href="<?php the_permalink(); ?>">
                            <?php the_title(); ?>
                          <p class="meta">
                            <?php the_time(get_option('date_format')); ?>
                            <?php comments_number(); ?> - Category: <?php the_category(' '); ?>
                          <!--post meta data-->
                            <?php the_excerpt(); ?>
                          <div class="readmore"><a href="<?php the_permalink(); ?>">Read More >></a></div>
                        <!--end of right excerpt-->
                      <!--end of search entry-->
    			<?php endwhile; ?>
    			<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
    	<?php else : ?>
    		<h2>Nothing found</h2>
    	<?php endif; ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thank guys,

  • The topic ‘Search Results Issue’ is closed to new replies.