• Is it possible to implement the search functionality on a non-wordpress powered page and have the results displayed there also?

Viewing 5 replies - 1 through 5 (of 5 total)
  • is this what you’re going for?

    Thread Starter dissurion

    (@dissurion)

    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

    Thread Starter dissurion

    (@dissurion)

    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. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘search function on other page’ is closed to new replies.