• Resolved kabney

    (@kabney)


    HI,
    I am using SEO WP theme with all the latest versions of wordpress, Table Press and the theme. However, the search function does not work in my theme unless I deactivate Tablepress. It will tell you there are no results found no matter what you search for. There seems to be a conflict. I tried adding
    add_filter( 'tablepress_wp_search_integration', '__return_false' ); to functions.php
    to see if it was the search in Tablepress causing the issue but that didn’t work either. Any suggestions?

    thanks

    https://ww.wp.xz.cn/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Did you really add that

    add_filter( 'tablepress_wp_search_integration', '__return_false' );

    line to the theme’s “functions.php” (and not WordPress’s “functions.php”)? If so, TablePress does not integrate or affect the WordPress search at all, so that this must have a different reason.

    Regards,
    Tobias

    Thread Starter kabney

    (@kabney)

    thanks,
    yes I added to the child themes functions.php. It didn’t actually turn off the search anyway but is there any reason the search for the theme would not work with your plug-in? I have never had issues with your plug-in like this before. I checked with the developer of the theme and they said it’s only an issue when TablePress is activated. Is there anything else I can do to help troubleshoot? Thanks for your quick response, I really appreciate it.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    that’s really strange then. When that line is added, TablePress does not care about the search at all…

    If possible, I’d like to take a direct look at this on your site. Could you therefore please create a temporary admin account for me and send me the details via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!

    Regards,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Kristin,

    thanks for the email! I was able to log in and could reproduce the issue. It indeed looks like there’s a conflict with the TablePress search integration.

    To turn that off, I then checked your child theme’s “functions.php” and noticed that there were PHP comment tags (/** and */) around the mentioned add_filter() line. I removed those and saved, and from what I can see, the regular search works fine with that (it will however not search tables). Can you confirm that observation?

    Regards,
    Tobias

    Thread Starter kabney

    (@kabney)

    oh! thanks so much for that, long day yesterday, sorry I didn’t catch that. Is working now!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

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

The topic ‘Conflict with Tablepress and search function’ is closed to new replies.