Support » Plugin: WPAdverts - Classifieds Plugin » Search form Extended Spectrum

  • 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 2 replies - 1 through 2 (of 2 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.

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.