Let user choose to sort the order
-
hi,
i have a website that running wordpress. i have a category page that list all the book i’ve review and it’s in category ‘Book’ (the category ID is 4) and in the top op the page i have a dropdown list that will sort the list based on title or date.
This is what i did:
http://wordpress.pastebin.ca/940717
what i want to do is, instead of sorting the list based on title or date, it would be useful for user to sort it based on categories like Romance, Interior, Fiction, Food. (they’re subcategories from ‘Book’ category).
So I try change the dropdown with the dropdown mentioned in this codex: http://codex.wordpress.org/Function_Reference/get_categories
And now the codes become:
http://wordpress.pastebin.ca/940720Somehow I can’t make it right. I test on my localhost and the list remains the same. it’s not sort them out based on the subcategories.
So if anyone have some ideas, i really appreciate it. thanks.
- The topic ‘Let user choose to sort the order’ is closed to new replies.