Title: thonyfd's Replies | WordPress.org

---

# thonyfd

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP REST API (WP API)] Filter parameter](https://wordpress.org/support/topic/filter-parameter/)
 *  Thread Starter [thonyfd](https://wordpress.org/support/users/thonyfd/)
 * (@thonyfd)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/filter-parameter/#post-4585856)
 * I find my answer in this post jeje
 * [http://wordpress.org/support/topic/passing-filters?replies=7](http://wordpress.org/support/topic/passing-filters?replies=7)
 * Best Regards!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP REST API (WP API)] Filter parameter](https://wordpress.org/support/topic/filter-parameter/)
 *  Thread Starter [thonyfd](https://wordpress.org/support/users/thonyfd/)
 * (@thonyfd)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/filter-parameter/#post-4585855)
 * Hi Guys,sorry for the title.
 * About my problem i added this lines in “class-wp-json-posts.php”
 * if(isset($filter) && $filter !==”){
    $filter = json_decode(stripslashes($filter),
   true); }
 * and i’m using an angularjs ajax method like this
 * var filter = {};
    filter[‘posts_per_page’] = 5; filter[‘post_type’] = ‘Post’;
   filter[‘cat’] = 5;
 * $http.get(‘[http://myhost/wp-json.php/posts&#8217](http://myhost/wp-json.php/posts&#8217);,{
   params: {“filter”: JSON.stringify(filter)}}).success(function(data) {
    //something
   here });
 * this it solve my problem but, is there a better way to use the filter parameter?
 * thank’s for all, and sorry again .

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