• I am a fan of this plugin. I am a bit OCD when it comes to logging in my book library digitally, and the Goodreads API is still a bit of a mess. While entering in all my books was a bit of a chore, once my library was complete it looked pretty great visually. There are a bunch of different ways to sort your catalogue and plentiful search options and tags. I even reached out to the developer, Jake, about modifying the code to allow for a different default sorting order, and he immediately responded. I would like the ability to reset the default sorting algorithm (whether by book title, author’s last name, publisher, etc) so I hope Jake will address this, but otherwise, if you like looking at a neatly-rendered digital catalogue of your book library, this is the plugin you want.

Viewing 1 replies (of 1 total)
  • Plugin Author Jake Evans

    (@forwardcreation)

    Thomas,

    In response to that particular request you had, about changing the default sorting of your books to Alphabetical, here’s the solution, for you and any others that may want to have their library set up this way:

    You’ll need to open the ‘ui.php’ file. Look for a section of code that looks like…

    default:
    if(empty($searchquery)){
    $my_query = “SELECT * FROM $table_name”;
    wpbooklist_display_books($wpdb, $count, $my_query, $sort_id, $hide_edit_delete, $books_on_page, $table_name);
    }
    }//end switch

    Should be around line 352 (if you’re looking at this in an actual text editor).

    Change the code above to:

    default:
    if(empty($searchquery)){
    $my_query = “SELECT * FROM $table_name ORDER BY book_title ASC”;
    wpbooklist_display_books($wpdb, $count, $my_query, $sort_id, $hide_edit_delete, $books_on_page, $table_name);
    }
    }//end switch

    Hope that helps!

    -Jake

Viewing 1 replies (of 1 total)
  • The topic ‘Good Stuff’ is closed to new replies.