• Resolved jkatinger

    (@jkatinger)


    Hello Tobias,

    Thank you for this awesome plugin! It’s been great for my project thus far, but I’m running into an issue getting the filtering by URL parameter to work.

    The table in question is located here:
    https://toflyandfight.com/357th-tribute/group-mission-list/

    I’d like to auto-filter this table upon page render via linking to it like so:
    https://toflyandfight.com/357th-tribute/group-mission-list/?table_filter=anderson

    I currently have the TablePress plugin and these extensions installed and activated:
    – tablepress-datatables-auto-filter
    – tablepress-row-filter
    – tablepress-shortcode-filter-get-parameter

    I’ve read several similar tickets to mine that are all closed, but I’m still not understanding why my parameter filtered URL doesn’t work. Any help you could offer would be greatly appreciated.

    Thanks,
    Josh

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    First, please make sure that you made this modification: https://ww.wp.xz.cn/support/topic/automatic-filtering-by-url-parameter/#post-10149102

    Then, please check if the Shortcode on that page is

    [table_filter id=8 /]
    

    Regards,
    Tobias

    Thread Starter jkatinger

    (@jkatinger)

    The Shortcode was the issue! Not sure why that didn’t make sense last night. I did not need to make the code change recommended here to get this to work, but is this something I should do for security reasons?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    good to hear that it works now!

    No, you don’t need to make that code change (and even then it would not be related to security at all). It would just alter the used filtering mechanism. Instead of using the static filtering (that you are using now), you could use the JavaScript filtering (via the search field above the table). That way, the visitor could still change the filter term even though one was predefined in the URL parameter.

    Regards,
    Tobias

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

The topic ‘URL Parameter Filter Issues’ is closed to new replies.