• Resolved Shuruna

    (@shuruna)


    I wondered why I’m don’t got any search results. So I added [acadp_search] to the search page, before only [acadp_search_form] was on that page. After that I got search results, but a warning showed too.

    Warning: Parameter 2 to ACADP_Public_Search::posts_where() expected to be a reference, value given in /www/htdocs/w01884f5/boytown.de/wp-includes/class-wp-hook.php on line 286

Viewing 1 replies (of 1 total)
  • Plugin Author pluginsware

    (@pluginsware)

    Hi,

    1. Open the below file,

    /wp-content/plugins/advanced-classifieds-and-directory-pro/public/class-acadp-public-search

    2. Find the following code in the above file,

    public function posts_where( $where, &$wp_query ) {

    3. Replace the above code with the below code,

    public function posts_where( $where, $wp_query ) {

    4. Finally, save the files and check your site. Hope this helps you.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Get a warning using the search form’ is closed to new replies.