• Resolved johndoe01

    (@johndoe01)


    Greetings.
    I have a couple of doubts regarding the search feature.
    I’m not sure how to expand the spectrum of the search field or location field, let me explain.

    My customer wants that buyer’s name gets included on the spectrum of the search field and the country as well (location is under the standard parameter but country is on a separate field). Is there a way that i can broaden such spectrum on the functions of the template?

    I appreciate all the help you can provide.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    that is more of a question about the WP_Query itself rather than WPAdverts, either way my guess is that it will not work.

    For example if user will search for user with login “racer” and will enter this value in the “keyword” field then the value would need to be used to search in title/description, adverts_person and some country_location meta. This is all doable but the WP_Query will return only a result which has the word “racer” in the title/description AND one of the meta fields.

    So it’s not a find-racer-in-any-of-the-fields search but rather find-racer-in-description-and-one-of metas kind of search.

    You would have to try something like ElasticPress plugin it uses ElasticSearch mechanism to index and search the database so you might have better chances to configure it like that, but i can’t tell for sure.

    Thread Starter johndoe01

    (@johndoe01)

    Well in that case i’ll check in depth that issue. I’m now aware that might be out of the plugin spectrum but at least it gives me a more oriented way to begin with. I’ll keep open this thread whenever i have doubts with the topic findings

    Thread Starter johndoe01

    (@johndoe01)

    Hello. While been trying to find the solution via Hard coding i stumbled upon with the Plugin WP Extended Search.

    Using it allows me to extend the parameters to the meta i need to find in the post.
    However, it needs to be set to Search only Classifieds since if it is left on the original parameters (Posts and Pages) The search results page gets broken with the list .php parameters (either custom or default).

    Still i need to deliver to add and retrieve an extra meta but that goes way outside the spectrum of this topic.

    I’ll mark it as Solved since i found the solution under the original purpose of this topic

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search form Extended Spectrum’ is closed to new replies.