• Hello,
    WP search generally works for me in All Pages and All Posts, but in Store locator/ All Stores search by Store Name returns nothing.
    Filter by date does not work either.
    Cleaning the filter brings me to the Posts all of a sudden.
    Please help me to fix it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Does this also happen when you disable all other plugins, and switch back to your default theme?

    Thread Starter temereva

    (@temereva)

    Haven’t tried yet. But here is what helped me: I’ve commented out the search filter in the theme’s functions.php, the one that excluded pages from the search results, when you search only in posts. I guess, there is some “misunderstanding” between the theme and the Store Locator about the post type the plugin use to display the stores.

    Below is the code:
    /*function searchExcludePages($query) {
    if ($query->is_search) {
    $query->set(‘post_type’, ‘post’);
    }
    return $query;
    }
    add_filter(‘pre_get_posts’,’searchExcludePages’);*/
    /*

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wp Store Locator: back end store search does not work’ is closed to new replies.