WordPress.org

Ready to get started?Download WordPress

Forums

[BUG] query posts doest not sort properly (2 posts)

  1. NightWalker
    Member
    Posted 5 years ago #

    Hi I've tried to order my posts by categorie. According the Codex http://codex.wordpress.org/Template_Tags/query_posts#Orderby_Parameters
    it should be
    query_posts('orderby=category&order=DESC');
    but it doesn't change anything. I've asked in a lot of Forum and all the people could confirm this.

    greats NightWalker

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Huh. Well, no, that wouldn't work, because it's sort of legacy code. Needs to be removed.

    Prior to WordPress 2.0, posts had only one category. After that, they could have multiple categories. Since then, ordering posts by category doesn't make much sense and doesn't work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.