Title: Bug (and solution) in function list_cats()
Last modified: August 18, 2016

---

# Bug (and solution) in function list_cats()

 *  [flegme](https://wordpress.org/support/users/flegme/)
 * (@flegme)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/bug-and-solution-in-function-list_cats/)
 * hi,
 * i think there’s a little bug in this function because when you decide to hide
   empty categories the “sort by” doesn’t function correctly. So i found a way to
   correct this…
    you have to search for : GROUP BY category_id (arround the line
   299) and replace it by : GROUP BY cat_$sort_column
 * it’s works for me 🙂

The topic ‘Bug (and solution) in function list_cats()’ is closed to new replies.

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 0 replies
 * 1 participant
 * Last reply from: [flegme](https://wordpress.org/support/users/flegme/)
 * Last activity: [21 years, 1 month ago](https://wordpress.org/support/topic/bug-and-solution-in-function-list_cats/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
