query_posts with taxonomy forcing post_type = ‘any’
-
I have a plugin that creates a WP taxonomy (for magazine issues).
I’ve created a convenience function called
query_magazine_poststhat callsquery_postsand 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_typeis being forced to equalanyon taxonomy pages.Is this by design and is there any way to exclude records that have
post_type = revision?Thanks in advance,
Alex
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘query_posts with taxonomy forcing post_type = ‘any’’ is closed to new replies.