Title: [Plugin: Query Posts] sorting by category
Last modified: August 19, 2016

---

# [Plugin: Query Posts] sorting by category

 *  [C0BALT](https://wordpress.org/support/users/c0balt/)
 * (@c0balt)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-query-posts-sorting-by-category/)
 * Category is entered as an ID number, not as the slug or name.
 * Suggestion for change on the Query Posts Widget “mega form”
 * from:
    category
 * to:
    category (enter ID#)
 * How to find ID #
 * A quick way of finding what ID # your category has is to go to
    >wp-admin >Posts
   >Categories (Hover over the category and see what the link is in the (status 
   bar)*. Inside of this link is an ID) here is an example when hovering over a 
   category. [http://website.com/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=9&post_type=post](http://website.com/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=9&post_type=post)
 * In this case category is “9” for Query Posts, not the friendly name that you 
   have given it.
 * *enable status bar in Firefox 3.0+
    >View (check on)Status Bar

The topic ‘[Plugin: Query Posts] sorting by category’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/query-posts.svg)
 * [Query Posts](https://wordpress.org/plugins/query-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/query-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-posts/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [C0BALT](https://wordpress.org/support/users/c0balt/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-query-posts-sorting-by-category/)
 * Status: not resolved