[wp-hackers] location of search query
jimmy.roy at gmail.com
Wed Jan 19 11:04:10 UTC 2011
finally I read the code of classes.php and I print wp_the_query, same
Jimmy | www.jimmyroy.fr
2011/1/19 Mike Schinkel <mikeschinkel at newclarity.net>
> On Jan 19, 2011, at 5:42 AM, Jimmy Roy wrote:
> > I have a problem with the search function and I would like to echo the
> > query, this query is in what file?
> Just add this to the top of your search.php theme template file somewhere:
> <?php echo $GLOBALS['wp_query']->request; exit; ?>
> Hope this helps.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers