SearchWP 2.8.2 Not Working w/Betheme 14.0.1

We upgraded our WordPress site with Betheme 14.0.1. Although the SearchWP plugin worked with the old theme it fails with Betheme. Turning off the plugin the native WP search works. The plugin status page indicates there could be be a problem with  pre_get_posts => mfn_exclude_category and pre_get_posts => mfn_search. We are using this plugin to index a large number of pdfs.

Comments

  • Hi,

    we did never used this plugin and to be honest, we have no idea what might be wrong exactly.

    Thanks for understanding!
  • Betheme is using non standard search coding. The SearchWP author provided the following code to enable us to use his plugin with Betheme.  It should be added to the child theme functions.php file.

    function my_after_setup_theme() {
            remove_action( 'pre_get_posts', 'mfn_search' );
    }
    add_action( 'after_setup_theme', 'my_after_setup_theme' );
    
    
  • So you are saying that you added above function and it works now?
  • Yes it works now.  

    Background: We were already using this plugin on our WordPress site. Once we updated the site to Betheme it broke. The Betheme code uses customized search functions. This added code to the child functions.php file allows use of the SearchWP plugin. Jonathan the plugin author has helped other Betheme users with the same code. This plugin allows us to index the contents of a large number of PDFs where is the native WP indexing does not.
  • Ok, thanks for explanation then!
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.