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?
- The topic ‘get_posts() – post list ordered by post category’ is closed to new replies.