• Resolved Peter

    (@peterx3x)


    Hi, Tobias
    First of all thank you for your fast response on your website!
    I write here, because for some reason I coulden’t post new response there.
    I copy here the previous posts. My question:

    Hi Tobias,

    Congrats on the excellent plugin!

    It’s the first time I use it and I really like it.
    Unfortunately I have a problem :(.

    I’ve created a table, entered the data, but there are no sorting options in the header row.
    “Yes, enable the use of a JavaScript library.” is checked.
    “The first row of your table is the table head” is checked.
    Also all options from “DataTables JavaScript features” are checked.

    I tried the different JavaScript libraries without any luck.

    Your response:

    Hi Peter,

    thanks for your comment. Nice to hear that you like the plugin.

    As you mentioned that you have tried all three JavaScript libraries, and after checking your site’s source code, I strongly believe that there is a problem with the inclusion of the jQuery library.
    As it seems, you are loading jQuery as part of the “wp-minify” plugin process. Additionally, you are loading the library from the Google CDN.

    Due to including the library multiple times, very likely something got into a conflict.

    Can you please try disabling other plugins that maybe deal with jQuery? Especially, please try without the wp-minify plugin and with loading WordPress’s default jQuery library.

    Best wishes,
    Tobias

    What I did:

    I deactivated all plugins and checked them one by one.
    wp-minify causes no problems.
    Use Google Libraries plugin (https://jasonpenney.net/wordpress-plugins/use-google-libraries/) stops sorting function in tables.
    Well, I can live without this plugin.
    The problem is that another plugin also crashes the sorting and filter options.
    It is wp-forecast (https://www.tuxlog.de/wordpress/2010/wp-forecast-3-0/).
    Unfortunately this is my favourite plugin. I spent a great deal of time searching for good weather plugin till a found the wp-forecast. It is the only one working really good for me, I also customized it a lot.
    So, is there any workaround for this problem: use both wp-forecast and sorting in your tables?
    Regs,
    Petar

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    likely the wp-forecase plugin then creates a JavaScript conflict as well. Unfortunately I’m not too savvy in JavaScript and don’t know how to spot the actual source of the conflict. The DataTables JavaScript library was not developed by me, I just ship it as an add-on with my plugin.

    My suggestion: You should either contact the wp-forecast developer to ask him, if he knows how to detect the conflict, or the DataTables developer (www.datatables.net).

    Best wishes,
    Tobias

    Thread Starter Peter

    (@peterx3x)

    Problem solved :).
    See the following discussion:
    https://datatables.net/forums/comments.php?DiscussionID=3003&page=1#Comment_12922

    Thanks for your help :)!

    Best wishes,
    Peter

    Thread Starter Peter

    (@peterx3x)

    I have two other questions now:
    1. When I use pagination and click next button it shows the next 10 or some rows but the position is not top of site. I mean: when the previous or next page button is clicked to take me to the top row of the column (or top of the site; like if I use a top anchor for the link).
    The code of this links is: <div id="wp-table-reloaded-id-1-no-1_paginate" class="dataTables_paginate paging_two_button"><div id="wp-table-reloaded-id-1-no-1_previous" title="Предишна" class="paginate_disabled_previous"></div><div id="wp-table-reloaded-id-1-no-1_next" title="Следваща" class="paginate_enabled_next"></div></div>
    2. I activated the option to search in tables, but how can I show the rows with searched terms in the results?
    https://test.marketing-forge.com/?s=%D0%A3%D0%B7%D1%83%D0%BD%D0%BE%D0%B2%D0%B0
    I have as a match the page containing the table, but I wish to show also the rows containing the term “Узунова”.
    //Don’t pay attention to the styling, because this page is still under construction.

    I guess I should place some code in search.php in my theme, but what exactly?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    for the 1. question: Sorry, no idea on that one. It likely is a JavaScript and CSS issue. You might try asking in the DataTables forums at https://www.datatables.net.

    For 2.: The search will find all posts that contain a table that contains the search word. That post/page is listed, depending on the setting of the template. To also show the table, you will indeed need to modify that template.

    Regards,
    Tobias

    Hi Tobias,

    I have a couple of tables on the soccer site I maintain, https://topekaselect.com. I am wondering if there is a way to have a secondary sort option on the tables. I don’t see it on the dashboard.

    Thanks!
    Dave

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Dave,

    can you explain what you mean with “secondary sort option”?
    Do you mean that you want to search two columns at the same time (on the “Edit” screen of your tables, I assume)?

    If yes: That’s unfortunately not possible, sorry.

    Regards,
    Tobias

    Hi Tobias,

    Yes, that’s what I meant. On our tryouts pages I was trying to find a way to sort first by age and then by date as the dates are out of order.

    But, that’s okay. It’s still and wonderful and easy to use plugin.

    Thanks so much for your hard work!

    Dave

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Sorting function problem’ is closed to new replies.