Need to do blank search.

When there is no value for parameter “s” , it redirects automatically to homepage.
Instead of this , I want to show all the information from my custom sql query.
how can i do this??

2 Answers
2

You can pass s=%20 as your search string, but thats kinda hackish.

If what you are trying to achieve is to use your search.php template but with “controled” search results, consider using this:

<?php 

global $query_string; // fetch query string being used
query_posts($query_string . '&posts_per_page=20') // add your terms to it.

?>

Leave a Comment