Search Form Issue
-
I am trying to get the search feature on my site https://www.voodoobanshee.com to search the entire site, not just the blog… can any one help me? This these are the codes”
searchform.php
<form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>
<div><input type=”text” value=”<?php echo wp_specialchars($s, 1); ?>” name=”s” id=”s” value=”Journal Search…” />
<!– <input type=”submit” id=”searchsubmit” value=”Search” /> –>
</div>
</form>search results
<?php get_header(); ?>
<div id=”content” class=”widecolumn”>
<?php if (have_posts()) : ?>
<h2 class=”title”>Search Results</h2>
<?php while (have_posts()) : the_post(); ?>
<div class=”post”>
<h2 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
• <?php the_time(‘l, F jS, Y’) ?>
<p class=”postmetadata”>Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
</div><?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Previous Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Next Entries »’) ?></div>
</div><?php else : ?>
<h2 class=”center”>No posts found. Try a different search?</h2>
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?><?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
- The topic ‘Search Form Issue’ is closed to new replies.