[wp-hackers] Filters on get_posts()
scribu
mail at scribu.net
Mon Oct 11 09:45:47 UTC 2010
On Mon, Oct 11, 2010 at 7:14 AM, John Blackbourn
<johnbillion+wp at gmail.com<johnbillion%2Bwp at gmail.com>
> wrote:
> I'd like to use get_posts() to get posts for my additional loop, but
> I'd also like to filter the query string so I can join an additional
> table (specifically, the translations lookup table from WPML [1] in
> order to fetch translated posts). The only filter I can use is the
> all-encompassing 'query' filter which applied to every single database
> query.
>
You can just pass suppress_filters => false to get_posts().
More information about the wp-hackers
mailing list