[wp-hackers] Replacing WordPress search

Tom Barrett tcbarrett at gmail.com
Mon Feb 18 10:50:42 UTC 2013


Hello

I have some complex searching to do, for which I'll need to build some
custom searches (db queries). I'm going to end up with 4 calls to
get_post() based on some custom query vars.

If possible, I'd like these to appear 'normally' using standard search.php
template loop. Is there a nice hook where I can stop WordPress performing
any queries itself, but still inject my own list of posts?

Tom

-- 
http://www.tcbarrett.com | http://gplus.to/tcbarrett |
http://twitter.com/tcbarrett


More information about the wp-hackers mailing list