[wp-hackers] query_posts with taxonomy forcing post_type = 'any'

Malaiac malaiac at gmail.com
Mon Nov 3 23:03:52 GMT 2008


2008/11/3 Alex Dunae <alex at dunae.ca>:
> I have a plugin that creates a WP taxonomy (for magazine issues). but it
> doesn't taxonomies and query_posts don't seem to play nicely together.
oh, rly ? :D

> ...post revisions are being returned in my results. I see in WP_Query that
> (on line 1199) the `post_type` is being forced to equal `any` on taxonomy
> pages.
>
> Is this by design and is there any way to exclude records that have
> `post_type = revision`?

maybe with the posts_where and posts_request filters ?

M


More information about the wp-hackers mailing list