WordPress.org

Ready to get started?Download WordPress

Forums

Search Results Issue (1 post)

  1. RWSD
    Member
    Posted 3 years ago #

    I'm having an issue with the search results page on Ourvinyl.com. 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(); ?>
                        </a>
                        <div id="excerpt">
                          <h2><a href="<?php the_permalink(); ?>">
                            <?php the_title(); ?>
                            </a></h2>
                          <p class="meta">
                            <?php the_time(get_option('date_format')); ?>
                            |
                            <?php comments_number(); ?> - Category: <?php the_category(' '); ?>
                          </p>
                          <!--post meta data-->
                          <h5>
                            <?php the_excerpt(); ?>
                          </h5>
                          <div class="readmore"><a href="<?php the_permalink(); ?>">Read More >></a></div>
                        </div>
                        <!--end of right excerpt-->
                      </div>
                      <!--end of search entry-->
                      </div>
    
    			<?php endwhile; ?>
    
    			<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
    
    	<?php else : ?>
    
    		<h2>Nothing found</h2>
    
    	<?php endif; ?>
        </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Thank guys,
    -Matt

Topic Closed

This topic has been closed to new replies.

About this Topic