WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Sort by file_date in list not working

[Resolved] Sort by file_date in list not working

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Fabian
    Member

    @fabifott

    DataTables use its own sorting mechanism, so the shortcode argument is ignored.
    See the DataTables Documentation to setup sorting:
    http://datatables.net/plug-ins/sorting

    James
    Member

    @jamesgoudy

    Ok…Any guidance on where to add the following to make this work? BTW this should be added as a feature IMO, a setting “choose sorting column for data table” and whether “asc or desc”.

    Thanks

    “aaSorting”: [[ 2, “desc” ]]

    James
    Member

    @jamesgoudy

    NM I changed to a different plugin. thanks anyway.

    You may use this trick to solve your sorting problem:

    In WP-Filebase change your template and add one more colum containing the field you want to sort by – file_date – then hide it with style:
    <td style=”display:none;”>

    Now you may use this column to sort by.

    The problem with sorting by file_date is that it doesn’t actually sort by chronological date, but rather alphabetically by day/month name. I was blown away by this! That must be a bug, unless I am missing something.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Sort by file_date in list not working’ is closed to new replies.