[wp-trac] [WordPress Trac] #41287: Add AND query mode for taxonomy terms

WordPress Trac noreply at wordpress.org
Tue Sep 26 22:58:43 UTC 2017


#41287: Add AND query mode for taxonomy terms
------------------------------------------+-----------------------------
 Reporter:  sebbb                         |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  REST API                      |     Version:  4.8
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by sebbb):

 It's too bad that this is not considered a bug 😢.

 I would think that the alternate syntax using `+`  (i.e.: `tags=41+50`)
 implies that only the posts that have both tag 41 and tag 50 should be
 returned.

 I'm working on an app that needs that feature, so I'll certainly look into
 a DIY solution in the meantime.

 Unfortunately I don't have any PHP, WordPress or API design background
 myself, so I wouldn't be able to create the patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41287#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list