All locations without an address show up in the same spot.
This topic contains 11 replies, has 2 voices, and was last updated by Guust 8 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
January 14, 2017 at 8:19 am #342454
Our directory will have users who do not need to give out physical addresses (such as a website or magazine) so we set it so that addresses are not required. Problem is it defaults the city and state and country to Phoenix, Arizona, USA – where we are.
Is it possible to omit the map if the address is omitted?
Here’s an example: https://growbay.com/cannabiz-directory/united-states/arizona/phoenix/cannabis-growers-supplies/grassroots-provisions/
http://growbay.com
Login with “getgrowing”January 14, 2017 at 8:57 am #342469You can create a CPT that does not need addresses.
https://wpgeodirectory.com/docs/core-general/#physicalYou need 2 different CPTs: one with addresses and one without, or things will not work.
January 15, 2017 at 3:19 am #342885Thanks for your help. We need all the businesses to be in the same CPT. Is there no way whatsoever to determine if an address is omitted and not show the map? Can’t this be done in PHP? Also, just realized, it would also have to not put the city and state in the sidebar. One way or another we have to figure out how to make that work. Thanks again.
January 15, 2017 at 6:02 am #342924Sorry, but that cannot be done. Either they all have addresses and coordinates, or none of them do.
January 15, 2017 at 7:23 am #342934Why does it choose Phoenix, Arizona? Can I at least change that?
January 15, 2017 at 7:57 am #342972Because that is what you set as your default location, most likely.
You can change that, by changing all the data for the default location, but that will mean you have to re-do all addresses for listings in Phoenix.January 15, 2017 at 8:20 am #342977Where do I change the data for the default location? I saw a screen shot somewhere showing it in the GD menu under permalinks but it’s not showing in our installation.
January 15, 2017 at 8:22 am #342979Another related question. If I enter a listing and don’t add an address then it doesn’t show an address on the detail page. Which is great. But if I add anything there at all and then try to delete it so that there’s no address it just goes back to what I entered originally. Any way to fix that? Can I go in and edit the database manually and delete the street address field? I believe I can figure out a way to not show the map widget if there’s no address.
January 15, 2017 at 8:37 am #342988GD > Multilocations, and edit the default location details. See image.
I highlighted the region “all”, there is no such region, you need to merge that location with another location, see https://wpgeodirectory.com/docs/manage-location/#merge
Similarly, this country does not exist: …/location/all/all/all/Either all listings have addresses and coordinates, or none of them do.
You should not make addresses non-required.
All listings is a CPT with addresses need address details including street address [but you can use just the Business Name], city, region and country.PS: IGNORE SECOND ATTACHMENT
January 15, 2017 at 10:12 am #343000I’m determined to make this work the way I need it to work. There are too many businesses in this industry that don’t want their street address given out to just give up on it.
I discovered that if I select a country, a state, and a city, but don’t enter a street address, and then click the pin on map button, it adds the country in the street address field. But it does put the pin in the correct city. Then I delete the street address field and publish.
It doesn’t show the address in the detail page (awesome), and it shows the pin on the map in the right city (awesome). It also doesn’t add an “all” to the multilocations.
Here’s a test post. https://growbay.com/cannabiz-directory/united-states/alaska/anchorage/cannabis-activism-non-profits/test-2/
So now, all I have to do is delete the street address from the listings that have already been entered where we just entered “United States” or “National” or whatever instead of an actual street address. I assume there’s a way to edit the database.
What kind of problems do you foresee if we do it this way?
Thanks for your patience in this matter. It’s very important to us.
January 15, 2017 at 10:45 am #343004I suppose I should add some instructions. Something like this:
TO OMIT YOUR STREET ADDRESS, BUT SHOW YOUR CITY AND STATE:
1) Select your country, state, and city.
2) Add the pin to the map.
3) The city name will populate the street address field.
4) You can then change the street address to a general location such as “Downtown” or “West Side” etc.
5) Publish your listing. It will not show a street address.
TO OMIT YOUR ADDRESS FROM THE LISTING ALTOGETHER:
1) Note that all listings will put a pin on the map!
2) Set the country, state, and city where you would like the pin to show up.
3) Add the pin to the map.
4) DELETE THE STREET ADDRESS FIELD AND LEAVE BLANK.
5) Publish your listing. It will not list any address information, but it will show the pin.
If you do not select a location the map will default to Phoenix, Arizona.January 15, 2017 at 12:19 pm #343016That is what I said: “including street address [but you can use just the Business Name], city, region and country.”
The system needs the following data:
* street address: can be the business name, country name or Mickey Mouse, but it cannot be empty
* city
* region
* country
* latitude and longitude – you can do that by dragging the marker, or clicking “Set on map”.I see you turned the “required” off, so you can indeed submit without a street address. I am not sure what issues that might bring without checking, but if it works for you, well, then it does.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket