[wp-trac] [WordPress Trac] #23475: Feed querystring not limiting returned posts by post type when also using category

WordPress Trac noreply at wordpress.org
Fri Aug 9 22:25:43 UTC 2013


#23475: Feed querystring not limiting returned posts by post type when also using
category
--------------------------+------------------------------
 Reporter:  jpyper        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  3.5.1
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------
Changes (by jpyper):

 * keywords:  reporter-feedback close => close


Comment:

 Alright, I flushed rewrite rules (visited permalinks page) and checked
 again, still the same.

 I did he var_dump and sure enough, it's querying "post" and "syndicated"
 both: `["post_type"]=> array(2) { [0]=> string(4) "post" [1]=> string(10)
 "syndicated" }`

 If you want to see the whole dump of query_vars you can visit the link in
 the original post. I just hooked into rss2_head and dumped there.

 If (via querystring in the URL) I go after just post_type=syndicated, I
 only get that post type, but when I throw the category in there I get both
 "post" as well.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/23475#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list