[wp-hackers] location of search query

Jimmy Roy jimmy.roy at gmail.com
Wed Jan 19 11:04:10 UTC 2011


thank you,
finally I read the code of classes.php and I print wp_the_query, same
result.

--
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
> sql
> > 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.
>
> -Mike
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list