The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP-Filebase Download Manager
[resolved] Sort by file_date in list not working (6 posts)

  1. James
    Posted 3 years ago #

    [wpfilebase tag=list id=2 tpl=data-table sort='>file_date' /]

    is not working it always shows up as sorted by file_name.

    Please advise! Thanks



  2. Fabian
    Plugin Author

    Posted 3 years ago #

    DataTables use its own sorting mechanism, so the shortcode argument is ignored.
    See the DataTables Documentation to setup sorting:

  3. James
    Posted 3 years ago #

    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".


    "aaSorting": [[ 2, "desc" ]]

  4. James
    Posted 3 years ago #

    NM I changed to a different plugin. thanks anyway.

  5. manyk
    Posted 3 years ago #

    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.

  6. bszen27
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.