I have a plugin that creates a WP taxonomy (for magazine issues).
I've created a convenience function called query_magazine_posts that calls query_posts and passes the taxonomy term.
function query_magazine_posts ( ... ) {
$qs = "orderby=ID&taxonomy=magazine&post_type=post";
query_posts( $qs );
}
However, post revisions (from WP's auto-save feature) 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?
Thanks in advance,
Alex