search.php results shifted
-
I just want my search results to display in the content area like the rest of the pages. When I try searching for any term (e.g. ‘video’), results do show up, but the entire layout shifts/moves to the right.
Here is the link to the site, and you’ll see what I mean…
https://www.djknocturnal.com/I’ve been trying to see if anyone else has had the same issue, but I can’t seem to find anything.
Is it my CSS styling? or am I using the wrong command when posting the query?
The code I’ve used in my Search Results Page (search.php)
<h2 class="pagetitle">Search Result for <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; _e(''); _e('<span class="search-terms">'); echo $key; _e('</span>'); _e(' — '); echo $count . ' '; _e('articles'); wp_reset_query(); ?></h2> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h3 id="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <br /> <div class="entry" > <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> </div> </div> <?php endwhile; endif; ?>
Any help would be greatly appreciated. Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘search.php results shifted’ is closed to new replies.