Title: jaredb138's Replies | WordPress.org

---

# jaredb138

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

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

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[REST API - Filter Fields] Any Support for filtering search queries in the future? [Edit: It already does]](https://wordpress.org/support/topic/any-support-for-filtering-search-queries-in-the-future/)
 *  Thread Starter [jaredb138](https://wordpress.org/support/users/jaredb138/)
 * (@jaredb138)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/any-support-for-filtering-search-queries-in-the-future/#post-9261694)
 * Sure I would add this:
 * The REST API – Filter Fields plugin can also filter the results generated from
   a native WP API filter (or search). For instance, doing `/wp-json/wp/v2/posts?
   categories=34` will return the last 10 posts from the category with the ID of
   34.
 * You can use the Filter Fields plugin with queries like this by appending `&fields
   =<field-name>` to the end of that query like `/wp-json/wp/v2/posts?categories
   =34&fields=<field-name>`
 * Using `/wp-json/wp/v2/posts?categories=34&fields=id` will return only the id’s
   of the 10 posts returned by the native category filter.
 * The Filter Fields plugin can also filter the fields of API searches. Doing `/
   wp-json/wp/v2/posts?search=foo&fields=title,content.rendered` (foo being the 
   search term) will return the title and post content of all posts that contain
   the search term “foo”.
 * It is important to note that the order of parameter queries is not important.
   You can call the native filter query in the URL first, or you can call the Filter
   Fields Plugin first.
 * Simply append the other query with an ampersand. For example:
 * Using
    `/wp-json/wp/v2/posts?search=foo&fields=title,content.rendered`
 * and
 * Using
    `/wp-json/wp/v2/posts?fields=title,content.rendered&search=foo`
 * will return the exact same results.
    -  This reply was modified 9 years, 1 month ago by [jaredb138](https://wordpress.org/support/users/jaredb138/).
      Reason: formatting

Viewing 1 replies (of 1 total)