[wp-trac] [WordPress Trac] #5433: URL Queries /?category_name=x&tag=a don't work

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 7 08:14:48 GMT 2007

#5433: URL Queries /?category_name=x&tag=a don't work
 Reporter:  philhassey  |       Owner:  anonymous
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:  2.5      
Component:  General     |     Version:  2.3.1    
 Severity:  normal      |    Keywords:           
 I am trying to find all posts that are in the intersection of category x
 and tag a.  I would expect that this query to my blog would work:

 /?category_name=x&tag=a : Gives a 404 -- even though I have several items
 in category x && tag a.

 However, I have found that querying a single category with multiple tags
 does work:

 /?category_name=x&tag=a+b : Gives results of items in category x && tag a
 && tag b.

 As a work-a-round for my issue, I've found that this works:

 /?category_name=x&tag=a+a : Gives results of items in category x && tag a

 I found this work-a-round by searching through includes/query.php to see
 if I could troubleshoot the issue.  I'm not quite sure how to fix the
 issue, but it appears that
 tag=a uses a different query than tag=a+a ..

 I hope my explanation was easy to follow, but if not, I'd be glad to try
 to explain further, or provide an example on my blog.

Ticket URL: <http://trac.wordpress.org/ticket/5433>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list