[wp-hackers] integrating custom search function to additional database table

Andy Skelton skeltoac at gmail.com
Wed May 3 23:37:52 GMT 2006

On 5/3/06, Stefan Hartweg <stefan at hartweg.net> wrote:
> My problem is, I don't know how I can make my search function talk Wordpress
> so that the results (i.e. the posts that match certain values from my own
> table) get displayed on a page, using the loop?
> I don't think I can use any use filters such as posts_where, as this uses
> Wordpress' own query and not my own, or can I?

Two more filters to consider:
posts_join (along with posts_where, you can accomplish your search in one query)
posts_request (total control over the query, if you're daring)


More information about the wp-hackers mailing list