Title: averydev's Replies | WordPress.org

---

# averydev

  [  ](https://wordpress.org/support/users/averydev/)

 *   [Profile](https://wordpress.org/support/users/averydev/)
 *   [Topics Started](https://wordpress.org/support/users/averydev/topics/)
 *   [Replies Created](https://wordpress.org/support/users/averydev/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/averydev/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/averydev/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/averydev/engagements/)
 *   [Favorites](https://wordpress.org/support/users/averydev/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [WordPress Rest API equivalent to category__and](https://wordpress.org/support/topic/wordpress-rest-api-equivalent-to-category__and/)
 *  Thread Starter [averydev](https://wordpress.org/support/users/averydev/)
 * (@averydev)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/wordpress-rest-api-equivalent-to-category__and/#post-9511033)
 * Hi there bcworkz.
 * I’m indeed only looking for `AND` right now. I don’t think that GET vs POST will
   make any difference since the same parameters are available regardless of which
   method, unless I’m missing some documentation somewhere.
 * There is an upper limit to the number of characters in a get request but that’s
   not an issue here.
 * It sounds like I’m going to need to build a custom endpoint to do this. I’m surprised
   that there isn’t a way to do this request since it’s such a basic one…
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [WordPress Rest API equivalent to category__and](https://wordpress.org/support/topic/wordpress-rest-api-equivalent-to-category__and/)
 *  Thread Starter [averydev](https://wordpress.org/support/users/averydev/)
 * (@averydev)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/wordpress-rest-api-equivalent-to-category__and/#post-9507241)
 * Hey there,
 * The approach of the ascending order categories doesn’t seem to have any effect,
   my guess is that it’s a coincidence that the sequence has an effect for you.
 * `categories[]=5&categories[]=6&categories[]=12` similarly has the effect of an“
   OR” rather than an “AND” in my experience.
 * The reason that multiple requests won’t work is this — Imagine if you had 3 categories,
   each with 1000 posts, but only 10 posts that overlapped all 3. You wouldn’t be
   making 3 requests — you’d have to load all of the posts from one of the categories,
   and then in JS check each item to see if the categories matched.
 * That’d be 100x the data transfer compared to what was actually needed. It seems
   to me that this is something that would best be handled at the db, since it is
   touching all of the data.
    -  This reply was modified 8 years, 9 months ago by [averydev](https://wordpress.org/support/users/averydev/).

Viewing 2 replies - 1 through 2 (of 2 total)