[wp-hackers] Setting up a WP Query with a search
SoJ Web
sojweb at indiana.edu
Mon Apr 13 19:21:55 GMT 2009
Are you just trying to modify or override the default WP search? There
are a few filters you can use to modify the query fairly extensively.
The Search Everything plugin has some nice code that can give you an
idea of working with that stuff:
http://wordpress.org/extend/plugins/search-everything/
Not to say it's the best method, depending on what you're doing, but
it's reasonably straightforward and easy to maintain.
-Jeff
On Apr 13, 2009, at 14:28 PM, Simon Wheatley wrote:
> Hi,
>
> I want to create a WP_Query which functions as the WordPress search. I
> thought this was just a matter of passing in the following as the
> args, but that doesn't seem to be working. Can anyone confirm that
> this is the right approach (and that I need to fix my own bug) or
> suggest another approach, please? I do want to do this with WP_Query
> if at all possible, rather than some wrapper function.
>
> Thanks in advance.
>
> S
>
>
> ---
> Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
> Registered office: 7 Malton Av, Manchester, M21 8AT
> _______________________________________________
> 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