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.