Support » Plugins » [Plugin: Quotes Collection] List all quotes by AUTHOR?

  • Resolved 84adam


    I’ve just created my very own quotes page with the
    [quotes|all] code, but I see that they are ordered by the first letter of each quote. Any ideas as to how I can list them by author alphabetically?

    Obviously I could list them myself by writing the author code [quote|author=Somebody] for each author, but this would not update/maintain itself automatically…

    Here’s my page just in case: thrive quotes


Viewing 3 replies - 1 through 3 (of 3 total)
  • You can accomplish that by making a little edit to the quotes-collection.php file.

    On line 799 of the quotes-collection.php (v1.4.1) you will find the code

    $sql .= "ORDER BY quote";

    replace it with

    $sql .= "ORDER BY author, quote";

    Be aware that automatic upgrade of the plugin to newer version will overwrite the old file, so your edits will be lost. You’ll have to re-edit when you upgrade.

    Perfect! Thanks.



    I just used this fix on the newest version of the plugin (it was a couple lines later) and I noticed a bug. One of my quotes was appearing at the top of the list both in the quotes page, and in the Quotes admin, when sorted by author, even though the Author’s name started with an H. Eventually, I figured out that there was a tab character at the start of the quote, which was pushing it to the top of the list. Not sure if that’s something that can be fixed in your code or not, but figured I’d mention it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Quotes Collection] List all quotes by AUTHOR?’ is closed to new replies.