Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same desire, more specifically, to be able to order quotes by date. It doesn’t seem there is any way for this kind of boolean sort.

    Me too.

    I figured out the “all” list is being displayed in alphabetical order of the quote itself. To get a quote to be at the top I added a space before the first word in the quote.

    It would be nice to be able to specify the display sort order ASC or DSC by any of the quote, author, source, or ID fields.

    And, if you make the ID field editable then we could have manual control over the display order.

    Enjoying the plugin so far. You can see it in action as list and rotating at https://beingelmo.com and https://beingelmo.com/notables

    Chris Tilley

    (@chris-tilley)

    I had the same problem and went into the code to do a quick fix. It is working on my site with my page of quotes displayed by quote id andthe random quote on each page still works. Anything else not tested…

    the code is located at: wp-content/plugins/quotes-collection/quotes-collection.php

    Search for the following code:

    function quotescollection_displayquotes($source = "")
    {
    	global $wpdb;
    	$source = html_entity_decode($source);
    	$sql = "SELECT quote_id, quote, author, source
    		FROM " . $wpdb->prefix . "quotescollection
    		WHERE public = 'yes' ";
    	if(!$source) {
    		$sql .= "ORDER BY quote_id";
    	}

    Change the ORDER BY quote to ORDER BY quote_id

    Hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Quotes Collection] How to Reorder quotes when display All’ is closed to new replies.