WordPress.org

Ready to get started?Download WordPress

Forums

get_posts() - post list ordered by post category (1 post)

  1. koala22
    Member
    Posted 6 years ago #

    Hi,

    I would like to generate a list of ALL my posts, ordered by category. The code I tried to use is this, but it doesn't sort the posts by category:

    $myposts = get_posts('numberposts=999&orderby=post_category');

    Can anyone help?
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic