Title: Not working using get_posts function
Last modified: August 21, 2016

---

# Not working using get_posts function

 *  Resolved [logicred](https://wordpress.org/support/users/logicred/)
 * (@logicred)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/not-working-using-get_posts-function/)
 * Re-ordering works fine in back end, but when I use a get_posts function the new
   order is not retained:
 * get_posts(‘numberposts=10&category=6’)
 * It is still ordering by ID. I can use the ‘orderby’ and ‘order’ params, but none
   of these reflect the re-ordering used by this plugin. Thanks!
 * [http://wordpress.org/plugins/post-types-order/](http://wordpress.org/plugins/post-types-order/)

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

 *  Plugin Author [nsp-code](https://wordpress.org/support/users/nsp-code/)
 * (@nsp-code)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/not-working-using-get_posts-function/#post-3965680)
 * Try including the ‘suppress_filters’ => FALSE within the parameters.
 *  Thread Starter [logicred](https://wordpress.org/support/users/logicred/)
 * (@logicred)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/not-working-using-get_posts-function/#post-3965725)
 * Thanks! Interesting, but possible bug in WP…
 * THIS WORKS
 * $args = array( ‘posts_per_page’ => 10, ‘suppress_filters’ => false, ‘category’
   => 6 );
 * THIS DOES NOT (it works, but the suppress_filters has no effect).
 * $lastposts = get_posts(‘numberposts=10&category=5&suppress_filters=false’);

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

The topic ‘Not working using get_posts function’ is closed to new replies.

 * ![](https://ps.w.org/post-types-order/assets/icon-128x128.png?rev=1226428)
 * [Post Types Order](https://wordpress.org/plugins/post-types-order/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-types-order/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-types-order/)
 * [Active Topics](https://wordpress.org/support/plugin/post-types-order/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-types-order/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-types-order/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [logicred](https://wordpress.org/support/users/logicred/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/not-working-using-get_posts-function/#post-3965725)
 * Status: resolved