rendered paste body<?php if (isset($_REQUEST['ajax']) && ($_REQUEST['s'])) { ?> <?php // You might want to show fewer results than the standard per-page number $max_results = 6; ?> <div id="liveResults"> <h4>Search Results <span class="closeResults"><a href="#">Close Results</a></span></h4> <p>You searched for <em><?php echo $_REQUEST['s']; ?></em>. Here are your results.</p> <?php if (have_posts()) : $i = 0; ?> <ul class="searchResults"> <?php while (have_posts()) : the_post(); $i++; ?> <li class="result <?php if( $i % 2 ) { echo 'even'; } else { echo 'odd'; } ?>" id="result-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"> <h5><?php the_title(); ?></h5> <p>Posted <?php $elixir->timesince() ?> ago • <?php comments_number('0 comments','1 comment','% comments'); ?></p> </a></li> <?php endwhile; ?> <p><a href="/?s=<?php echo urlencode($_GET['s']); ?>">Get More Details in the Full View</a></p> </ul> <?php else : ?> <p>Sorry, nothing matched your search.</p> <p> </p> </div> <?php endif; ?> <?php } else { ?>