• Hello there,

    I would like to create a page which outputs an alphabetical index of all posts in a certain category. I tried the following:

    query_posts('category_name=mac-software&sort_column=name')

    Because I thought it would work the same way as in wp_list_pages(), but posts are not sorting alphabetically! Do I have syntax errors, or is this not possible at all?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I looked through the codex and saw nothing that allowed a sort by name on query_posts, only based on date posted.

    I looked through the codex and saw nothing that allowed a sort by name on query_posts, only based on date posted.

    It goes something like this:

    query_posts("&category_name=mac-software&orderby=title&order=asc")

    Not exactly sure about the category thing, but I was doing something similar the other day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with query_posts() sorting’ is closed to new replies.