• Resolved sedwards70

    (@sedwards70)


    Hi

    Great plug in – but I’m having issues using sortfirst. My short code is pasted below – basically everything’s working except showing the files with the latest one at the top… doesn’t seem to matter what I set for sortfirst, it sticks with the same order…

    [fileaway type=”table” mod=”yes” size=”no” only=”.xls,.xlsx” paginate=”yes” pagesize=”25″ search=”no” sortfirst=”mod-desc”]

    Also, clicking any of the column headings doesn’t toggle the sort order – should it?

    Any help will be gratefully received!

    Thanks

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

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

    (@thomstark)

    I copied your exact shortcode into my testsite and it works correctly. It sorts by most recent files first, and the sort toggle works fine too. My guess is another plugin is causing a javascript error on your page that is preventing the table sorting script from working. But that’s just a blind guess. Check your console to see if there are any javascript errors on the page.

    Thread Starter sedwards70

    (@sedwards70)

    Hi

    I really appreciate your speedy reply.

    I checked the console and was getting a ‘jQuery not defined’ error. I’ve changed your plug in to place javascript in the header and it now works perfectly fine – I wasn’t even getting the up/down arrows appearing on the columns prior to doing this.

    Many thanks

    Plugin Author thomstark

    (@thomstark)

    Glad to hear you worked it out. It shouldn’t need to be in the header in order to work, unless something else in your setup is quirky, but as long as you’re satisfied with that solution, I’m happy too.

    All the best.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘having trouble with sortfirst’ is closed to new replies.