is this what you’re going for?
Hey amory,
thanks for the reply.
I think that may be it. The page is outside the wp directory. I can search fine using the require wp-blog-header.php on my page. But I can’t find the way to display the search results there also.
Here is what I have on my search/index.php file:
<code>
<?php if ($s) {require(‘../includes/wordpress/results.php’);}
else {require(‘../includes/wordpress/search.php’);} ?>
</code>
then for display the results, check out here and here. You will need to click view source to get the code.
change the uri as neccessary for each template in the if else statement above
Thanks amory,
I see the technique you used. I guess the problem was with me leaving the
action=”<?php echo $PHP_SELF; ?>”
in the search form., instead of redirecting it to my search page itself.
Thanks for solving my problem. 🙂