• Resolved Futuresweb

    (@webmasterfutureswebcom)


    Hi, I’m trying to list the files first (on top of the list) in the order that they are dated or uploaded. The mp3 file when uploaded lists them as requested but when uploading a file like pdf or doc it lists them in the reverse order.

    Like this:

    8-11-2014
    8-12-2014
    8-13-2014

    I would rather have the 13 date listed first. I tried removing the attribute and also changing it to asc instead of desc in the shortcode and it doesn’t change the order.

    I’m using this in the shortcode: sortfirst=filename-desc

    Thanks!

    https://ww.wp.xz.cn/plugins/file-away/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author thomstark

    (@thomstark)

    I’ll take a look at this when I can. I’ll let you know.

    Plugin Author thomstark

    (@thomstark)

    Do I still have access to your site? I can’t find the domain name in my emails. But I have the username and password.

    Plugin Author thomstark

    (@thomstark)

    When I go the page they appear in this order for me:
    8-13-14
    8-12-14
    8-11-14 (1)
    8-11-14

    Plugin Author thomstark

    (@thomstark)

    But really you should name them like,

    2014-08-13
    2014-08-12
    etc.

    Because when 2015 rolls around, the way you’re naming them, they will go like this:

    8-13-14
    8-13-15
    8-12-14
    8-12-15

    etc.

    Plugin Author thomstark

    (@thomstark)

    Also it will probably do this:

    1-20-15
    10-20-14
    11-20-14
    12-20-14
    2-20-15
    3-20-15

    That’s why YYYY-MM-DD is best for ordering.

    Plugin Author thomstark

    (@thomstark)

    You also have a javascript error on your pages.

    Failed to load resource: the server responded with a status of 404 (Not Found)
    http://108.178.30.94/wp-content/themes/promotion/fonts/.js

    That means your theme is trying to enqueue a javascript file called fonts.js but the client can’t access it or find it.

    Thread Starter Futuresweb

    (@webmasterfutureswebcom)

    for the mp3 they list properly but for other filetypes they don’t. I would like to be able to list these by data modified then the naming of the file wouldn’t matter.

    Plugin Author thomstark

    (@thomstark)

    Well you can certainly do that! 🙂

    sortfirst=”mod-desc”

    Thread Starter Futuresweb

    (@webmasterfutureswebcom)

    I tried that and it still lists them the other way……it only seems to work for the playback files….

    I added mod=yes to see the last modified date and it still lists them the wrong way.

    8-11-2014 (95.3k)
    Last modified August 15, 2014 at 11:48 AM

    8-14-2014 (10.8k)
    Last modified August 15, 2014 at 11:50 AM

    Would like this to display:

    8-14-2014 (10.8k)
    Last modified August 15, 2014 at 11:50 AM

    8-11-2014 (95.3k)
    Last modified August 15, 2014 at 11:48 AM

    Question, can i change the ‘last modified’ text?

    Plugin Author thomstark

    (@thomstark)

    Oh my. I just realized you are trying to sort a list, not a table. No, you cannot sort a list. It will always be alphabetical ascending.

    If you want the ability to choose how you sort, you need to use a “sortable” data table. The sorting is done on the client side.

    Plugin Author thomstark

    (@thomstark)

    If you were using the shortcode generator to build your shortcodes, you’d notice that the sorting options are not available under the list type.

    Thread Starter Futuresweb

    (@webmasterfutureswebcom)

    gotcha, but since it tags and displays ‘last modified’ is there a way you could add something to be able to sort a list by last modified?

    Plugin Author thomstark

    (@thomstark)

    As I side, sorting is done on the client side, powered by the footable script attached to the data tables.

    Plugin Author thomstark

    (@thomstark)

    You’ll notice that in the shortcode generator, the lists are referred to as Alphabetical Lists.

    Thread Starter Futuresweb

    (@webmasterfutureswebcom)

    Got it, thank you!

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘file order’ is closed to new replies.