Title: classna's Replies | WordPress.org

---

# classna

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts orderby=date not working when i exclude a category](https://wordpress.org/support/topic/query_posts-orderbydate-not-working-when-i-exclude-a-category/)
 *  Thread Starter [classna](https://wordpress.org/support/users/classna/)
 * (@classna)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/query_posts-orderbydate-not-working-when-i-exclude-a-category/#post-2109666)
 * Never mind, It was not working on my local machine.. Works on my live website.
   Still don’t know why it was not working locally. here’z the code:
    `query_posts('&
   cat=-9&orderby=date&order=DESC&posts_per_page=5' );`
 * Thanks keesiemeijer for all your help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts orderby=date not working when i exclude a category](https://wordpress.org/support/topic/query_posts-orderbydate-not-working-when-i-exclude-a-category/)
 *  Thread Starter [classna](https://wordpress.org/support/users/classna/)
 * (@classna)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/query_posts-orderbydate-not-working-when-i-exclude-a-category/#post-2109664)
 * Thanks keesiemeijer for your help but this didn’t work either.. i think its the
   category exclusion preventing it to sort. If i get rid of the category filter,
   the date sort works.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts orderby=date not working when i exclude a category](https://wordpress.org/support/topic/query_posts-orderbydate-not-working-when-i-exclude-a-category/)
 *  Thread Starter [classna](https://wordpress.org/support/users/classna/)
 * (@classna)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/query_posts-orderbydate-not-working-when-i-exclude-a-category/#post-2109648)
 * Tried with posts_per_page and wp_reset_query but it still does not work. This
   is the only loop in my index page. I do have some plugins that show posts from
   various categories in the sidebar. Disabling the plugins didn’t solve this issue..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts orderby=date not working when i exclude a category](https://wordpress.org/support/topic/query_posts-orderbydate-not-working-when-i-exclude-a-category/)
 *  Thread Starter [classna](https://wordpress.org/support/users/classna/)
 * (@classna)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/query_posts-orderbydate-not-working-when-i-exclude-a-category/#post-2109638)
 * am i the only one having this issue?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Display category description?](https://wordpress.org/support/topic/display-category-description-1/)
 *  [classna](https://wordpress.org/support/users/classna/)
 * (@classna)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/display-category-description-1/#post-656271)
 * Use <?php echo category_description(); ?> to display the description of the current
   category. For more details check out [http://codex.wordpress.org/Template_Tags/category_description](http://codex.wordpress.org/Template_Tags/category_description)

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