TheCityLoop
Member
Posted 2 years ago #
Hello there,
This is a great script, so thank you! :)
I was just wondering how I can get my "Planned" and "Recent" book list to be sorted by alphabetical order?
I know I'll need to edit:
<?php while( have_books('status=read&orderby=finished&order=desc&num=-1') ) : the_book(); ?>
But I have no idea what to add or remove...
Help please :)
Thanks!
bgunnink
Member
Posted 2 years ago #
Change orderby=finished to orderby=title.
TheCityLoop
Member
Posted 2 years ago #
Brilliant, many thanks :)
posts like this would be more helpful if you indicate where the code is instead of just quoting an unIDed segment. Thanks.
I really don't know why the default for any library sorting is not alpha by author or why these options are not in a config screen.
bgunnink
Member
Posted 1 year ago #
Because the original author wrote it that way and I don't have the time to rewrite it. Config screens are nice, but not as flexible as templates.
The default sorting isn't alpha by author because a lot of people (at least, when the plugin was first made) use the plugin as a chronology of read books.