Title: ventus85's Replies | WordPress.org

---

# ventus85

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_posts with excluding category](https://wordpress.org/support/topic/get_posts-with-excluding-category/)
 *  Thread Starter [ventus85](https://wordpress.org/support/users/ventus85/)
 * (@ventus85)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/get_posts-with-excluding-category/#post-3968788)
 * `$args = array( 'numberposts' => 1, 'cat' => -6 );`
 * The code is correct.
    Yesterday when I wrote this code, maybe I must have been
   sleeping 😛
 * Thank you!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_posts with excluding category](https://wordpress.org/support/topic/get_posts-with-excluding-category/)
 *  Thread Starter [ventus85](https://wordpress.org/support/users/ventus85/)
 * (@ventus85)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/get_posts-with-excluding-category/#post-3968742)
 * Hi all.
 * Thank you for your answer.
 * Ops, the code is wrong in the post, but in the file it is correct, I tried
 * `$args = array( 'numberposts' => 1, 'cat' => -6 );`
 * and
 * `$args = array( 'numberposts' => 1, 'cat' => '-6' );`
 * but these solutions don’t work
 * 🙁

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