Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thank you darinez this also solved my problem with months. It could be great with a fix that would make it possible to translate the months instead.

    Regarding WP_LANG. When defined as danish it should be define (‘WPLANG’, ‘da_DK’); not (‘WPLANG’, ‘da_DA’);
    This however does not work with the provided da_DA.mo and da_DA.po files included with the-events-calendar.
    You can fix this by just opening the po file in Poedit. Follow the steps provided by darinez and then save the file as da_DK.po

    Martin

    Thread Starter mlynge

    (@mlynge)

    Hi. Thank you for your as usual for your quick reply 🙂
    Changing the ” to ‘ did the trick for:

    [table id=1 datatables_customcommands="'sPaginationType': 'full_numbers', 'iDisplayLength': 50" /]

    However datatables_customcommands="'aaSorting': [[1,'desc'], [2,'desc']]" didn’t work. I think WP misinterpret the brackets []

    So my solution was to make a template with the following WP-table-reloaded template tag. The custom commands works as intended when using the Template Tag.

    <?php wp_table_reloaded_print_table( "id=1&use_tablesorter=true&print_name=false&alternating_row_colors=true&row_hover=true&first_row_th=true&datatables_sort=true&datatables_paginate=true&datatables_lengthchange=true&datatables_filter=true&datatables_info=true&datatables_customcommands='sPaginationType': 'full_numbers', 'iDisplayLength': 50, 'aaSorting': [[1,'desc'], [2,'desc']]" ); ?>

    Hope that some one out there can find this useful. Again thanks for your support Tobias.

    Regards

    Martin Lynge

    Hi Tobias

    I figured that I would upload the site to see if there was some conflict testing your plug-in on a localhost. It is now working as it should. Great!
    It still puzzles me why I couldn’t get it to work on my localhost. If I figure out why I will off cause post it here to help out other with a similar problem if one exist.

    Thank you very much for your rapid reply.

    Best wishes,
    Mlynge

    I got exactly the same problem. No pagination or sorting opportunity.
    It is the only plug-in I’m using so no conflict there. I also tried to comment out all other scripts to see if that was the source of the problem, but no.

    I’m testing on a localserver. Do anybody now if that could be the problem.

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