• stylepeterson

    (@stylepeterson)


    I have a WordPress 3.1 site at http://stylepeterson.com

    When I do a search, it gives me the first page of the search results. However when I click on the link at the bottom of the page to see more results, it takes me to the 2nd page of the index (home) page, NOT the 2nd page of search results.

    Is there a fix for this? Thanks for any help you can give.
    Here is the code for the search results:

    backticks
    <div class=”clear”></div>
    <div id=”content”>
    <div class=”from_title”>

      <li class=”page_title”>SEARCH RESULTS

    </div>

    <div class=”content_wrap sidebar_push”>
    <div class=”full-entry”>

    <?php query_posts($query_string . ‘&showposts=10’); ?>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?>>

    <h2 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <p class=”postmetadata”>Posted on: <? the_time(‘F jS, Y’) ?>
    <?php the_tags(‘Tags: ‘, ‘, ‘, ‘
    ‘); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
    <span style=”width: 540px; overflow: hidden;”><?php the_content(”); ?></span>
    </div>

    <?php endwhile; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
    </div>

    <?php else : ?>

    <h2 class=”center”>No posts found. Try a different search?</h2>

    <?php endif; ?>

    </div><!– .content-wrapper–>
    </div><!– .full-entry –>

    <?php get_sidebar() ?>
    <?php get_footer() ?>

    backticks

  • The topic ‘Search Results Only Show First Page’ is closed to new replies.