WordPress.org

Ready to get started?Download WordPress

Forums

orderby category how it works (1 post)

  1. NightWalker
    Member
    Posted 5 years ago #

    Hi!
    I want to sort my posts by Category, so i tried this:

    <?php query_posts('orderby=category'); ?>
    <?php while ( have_posts() ) : the_post() ?>

    But it doesn't change anything to the Post order, the post are still ordered by Date.

    Can somebody tell me how it works?
    Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.