How to link non_WP ‘search’ function to WP search function?
-
Okay, couldn’t figure out including WP 2.3 functions in my non-WP index this weekend (help?) I’m currently working on trying to link my non-WP ‘search’ function to my WP ‘search’ function.
Example non-WP ‘search function:
<div id=”rightbar” class=”sidebar”>-
<form id=”searchform” method=”get” action=”https://www.goodlookingbrother.com/search”>
<div><input type=”text” name=”s” id=”s” size=”15″ value=”” />
<input type=”submit” value=”Search” />
</div>
</form> -
<h2 class=”title”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<?php the_title(); ?>
</h2>
<p class=”byline”><small><?php the_time(‘l, F jS, Y’) ?></small></p>
<?php the_excerpt(); ?>
/////WP’s ‘search.php’:
<?php get_header(); ?>
<div id=”content”>
<div class=”post”>
<h1 class=”title”>Search Results</h1>
<div class=”entry”><?php if (have_posts()) : ?>
<ul class=”posts”>
<?php while (have_posts()) : the_post(); ?><?php endwhile; ?>
<?php else : ?>
<p>No posts found. Please try a different search.</p>
<?php endif; ?>
</div>
<div class=”links”> </div>
</div><div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Previous Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Next Entries »’) ?></div>
</div></div>
<?php get_footer(); ?>
-
<form id=”searchform” method=”get” action=”https://www.goodlookingbrother.com/search”>
- The topic ‘How to link non_WP ‘search’ function to WP search function?’ is closed to new replies.