Hi,
thanks for your question, and sorry for the trouble.
Which filtering are you referring to here? The Row Filter Extension?
What’s the exact Shortcode that you are using?
Can I see the full table somewhere?
Regards,
Tobias
Thank you for your quick response!
Yes, I am using the row filtering extension.
The shortcode used on the page is [table id=28 filter=keyword table_head=false filter=”Wendy’s” /]</p>
The page is https://franchisedisclosuredocuments.net/search-fdds/wendys-fdd/
I would like this the table on this page to just show the table rows that include “wendy’s”.
The shortcode filter works perfectly on all pages/tables except those rows that have apostrophes.
The home page where the entire table is displayed is https://franchisedisclosuredocuments.net/
I can search on “Wendy’s” in this table and it displays fine.
Thanks!
Hi,
thanks for that information! Indeed, there’s a small bug in the Extension that prevents filtering for terms that contains '. The reason is that it is escaped, although that is not necessary.
To fix this, please change line 150 of the tablepress-row-filter.php file from
$filter_terms[ $key ] = addslashes( wp_specialchars_decode( $filter_term, ENT_QUOTES, false, true ) );
to
$filter_terms[ $key ] = wp_specialchars_decode( $filter_term, ENT_QUOTES, false, true );
Regards,
Tobias
Thank you very much Tobias! That fixed our problem and things all work well now.
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Thanks for the confirmation.
Best wishes,
Tobias