• Resolved wilky76

    (@wilky76)


    hello, we have placed several ads with the title BROCCOLI, and if we try to do the search in the top bar we find them. However, if we first choose a category, the region in which the ad should be contained does not appear. Why and how can I solve it? Thank you

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

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

    (@gwin)

    Hi,
    i am not sure how to replicate the problem you are having?

    I understand you are on the homepage here https://www.iozappo.it/ and click on one of boxes for example Verdura which redirects to a page with ads in this category, this seems to be working properly?

    Clicking on regions does not find any Ads as none of the Ads you have listed here https://www.iozappo.it/annunci/ has a location set which would match any of the locations on the homepage. The closest one is “reggio emila” in the Ad and “Emilia-Romagna” on the homepage but these are still different phrases so there is no match found when searching for Emilia-Romagna.

    Thread Starter wilky76

    (@wilky76)

    hello, in fact I think that instead I have to implement a correspondence: how can I make sure that when one enters the position, the announcement goes directly into the correct region, and then can be searchable?
    Thank you

    Thread Starter wilky76

    (@wilky76)

    Plugin Author Greg Winiarski

    (@gwin)

    This Ad https://www.iozappo.it/advert/cerco-broccoli/ will be visible only when searching for “reggio emila” https://www.iozappo.it/annunci/?location=reggio%20emila as this is the location this Ad has set.

    If you would like the Ad to be visible when searching for Emilia (https://www.iozappo.it/annunci/?location=Emilia) you would need to edit the Ad from wp-admin / Classifieds panel and change its location to Emilia.

    As an alternative you can use the Maps and Locations extension it will allow you to predefine some available regions and turn the Location field into a dropdown then users will be able to choose location from predefined regions only.

    Thread Starter wilky76

    (@wilky76)

    I checked the plugin and I see it doesn’t have a detailed section for locations where we can group other secondary locations in a specific city. Please, you can help ask how you did before if they have other options about it. I’ve seen an addon of locations here https://wpadverts.com/extensions/maps-and-locations/ but I don’t know if it allows you to put cities below others.

    Plugin Author Greg Winiarski

    (@gwin)

    I do not know what do you mean by “put cities below others”??

    If you want to create a locations tree like on the screen here https://www.dropbox.com/s/5ozi5pbucbupkfn/locations-tree.png?dl=0 then this is possible with Maps and Locations extension, although from your message i do not understand how you are planning to use it so i cannot tell if MAL extension will help you or not.

    Thread Starter wilky76

    (@wilky76)

    Okay, I’ll try explaining better please. So on my classified site. I’d like a situation where people can come and search for an ad, set the location as a city name for example New York, and then anyone could come to the location search bar and search for an ad, filter based on a small town within New York and the ad shows up. Also if they put New York in the location search bar and filter.. The ads in the small cities within New York show up. So there’ll be this interconnectedness between small towns in bigger cities or regions when searching. Will appreciate your advice. Thanks

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    currently, the only way to do that i can think of would be to create a list (or rather a tree) of locations using MAL plugin, you would basically need to list all of the available locations in wp-admin / Classifieds / Locations panel.

    Then when the user selects a NY state he could see all the cities in NY. This method, however, will not allow detecting the user current location, so the default location in the Location field will not be set until the user will set it himself.

    Thread Starter wilky76

    (@wilky76)

    hello, we thought we would use a much simpler method: suggest to the user to insert region, province and location in the location of the ad, is it possible?

    https://www.iozappo.it/annunci/add/

    How can I change the word “Posizione” or enter in the input box suggesting already the 3 keywords to be entered? Thank you

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    how would you like to suggest this to the user? That is how you would like the Location input in the [adverts_add] to look like?

    It would be best if you could show some mockup or screenshot explaining it.

    BTW. The page you linked to requires login so i cannot take a look at it.

    Thread Starter wilky76

    (@wilky76)

    yes, the page is advert_add
    below is written “POSITION”: I should insert a different wording there, or in the field that should be completed

    https://www.iozappo.it/wp-content/uploads/2019/02/Senza-titolo-2.jpg

    • This reply was modified 6 years ago by wilky76.
    Plugin Author Greg Winiarski

    (@gwin)

    If you have Custom Fields extension then you can customize this field from wp-admin / Classifieds / Options / Custom Fields panel.

    If not then you can also modify it using adverts_form_load filter, add the code below in your theme functions.php file

    
    add_filter( "adverts_form_load", "customize_adverts_add" );
    function customize_adverts_add( $form ) {
      if( $form['name'] != "advert" ) {
        return $form;
      }
      foreach( $form["field"] as $key => $field ) {
        if( $field["name"] == "FIELD_NAME" ) {
            $form["field"][$key]["label"] = "New Label";
            $form["field"][$key]["attr"] = array( "placeholder" => "description ..." );
        }
      }
      return $form;
    }
    

    Just replace the FIELD_NAME with actual name of the Posizione field.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘search ad that does not work in subcategories’ is closed to new replies.