Posts Tagged wordpress sort posts

Sort WordPress Posts In Different Ways

Im currently using the wpreviewsite ratings script on my site which changes the default WordPress sort order to show the highest rated posts first.

Id like to be able to add some links to the top of my category, search and tag results pages to allow users to sort posts by either rating, date, alphabetically or number of comments. Id like to do this with links, not a dropdown and have the links toggle the results asc/desc each time they are clicked so I end up with:

Sort by Rating | Date | Alphabetically | No. of Comments

Sort by rating (highest first) would remain as the default

Many thanks.

Tags: , , , , , , , , , , , , , , , ,