[wp-hackers] Overriding get_posts() behaviour

Denis de Bernardy denis at semiologic.com
Sun Jul 3 10:28:16 GMT 2005

Hi Christian,

Maybe you'd like to merge your search plugin with mine.


Else, it might be helpful in using the right hooks. In particular, there is
a the_posts hook, in particular, that you can catch immediately before the
wp_query returns its results.


> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com 
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of 
> Christian Aust
> Sent: Sunday, July 03, 2005 10:40 AM
> To: wp-hackers at lists.automattic.com
> Subject: [wp-hackers] Overriding get_posts() behaviour
> Hi,
> I'm working on a more powerful search plugin. AFAIK I'd have to 
> implement an action 'parse_query' to do the parameter stuff, after 
> which get_posts() is called. That's where my plugin should step in an 
> provide a list of posts that match the criteria. Unfortunately, there 
> isn't any action hook to implement a special get_posts() behaviour 
> which would allow me to retrieve a set of post IDs directly from 
> get_posts(). There's only one parameter 'p' allowed, not an array of 
> p's.
> I'd like that plugin to be as unobtrusive as possible, 
> allowing to use 
> standard and extended search happily together. Any ideas what I could 
> do? Best regards,
> -  Christian
> --
> Christian Aust
> http://publicvoidblog.de/  -  mailto:christian at wilde-welt.de
> icq: 84500990 - Yahoo!: datenimperator - MSN: datenimperator
> _______________________________________________
> 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