Title: [Bug 2.6] get_posts doesnt work
Last modified: August 19, 2016

---

# [Bug 2.6] get_posts doesnt work

 *  [cu-viper](https://wordpress.org/support/users/cu-viper/)
 * (@cu-viper)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/bug-26-get_posts-doesnt-work/)
 * Hi,
 * has someone noticed, that the function get_posts() doesnt sort posts anymore?
   
   Does somebody has a solution?
 *     ```
       $myposts = get_posts("category=".$cat->term_id."&numberposts=99&orderby=post_name&order=DESC");
   
       foreach($myposts as $post)
       {
       the_title();
       }
       ```
   
 * gets the following List:
    * Cental Park * Brooklyn Bridge * Flatiron Building*
   Madison Square Garden * Grand Central Station
 * Thanks for support 🙂

The topic ‘[Bug 2.6] get_posts doesnt work’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [cu-viper](https://wordpress.org/support/users/cu-viper/)
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/bug-26-get_posts-doesnt-work/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
