Skip Navigation

[Resolved] Remove country from address

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to remove the country from the address information on the stored value in the address custom field.

Solution:

Unfortunately this is not possible as the country information needs to be there in order for google to be able to identify which country the address is from .

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 6 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#629718

Hi,

I'm using an parametric search to lookup a city.
In the address field the country is always saved.

The problem I have is:
When you search for a city called ''ede'', the results will display all posts with the country ''Nederland" since ''ede'' is in the word.

How can I exclude the country from the search so this wouldn't occur anymore?

#629743

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Christiaan,

Thank you for contacting our support forum.

Is your search checking through the custom fields as well ? As you can just let the search go for just the post title.

Thanks,
Shane

#629744

No, I only want my search to look upon the field ''address''. The post title is just the company name, people will search on their city to check which companies are near.

#629797

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Christian,

So to get it clearly. The name search or the text should check the Address field as well ?

Unfrutnately there isn't a way to just have the address without the city and allow it to work with google maps.

Thanks,
Shane