Use only City and Neighbourhood?

This topic contains 5 replies, has 3 voices, and was last updated by  Paolo 5 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #474477

    vivek
    Full Member
    Post count: 246

    Hi, my directory is focused on one country (India) and various cities within that. I dont really need to set or show the regions/states names, as the cities are good enough.

    Currently, I am using defualt country, and ‘selected’ regions and cities- so i have selected the regions (states) for each city i add

    However, the region is not really adding any value, so can I set both country and region as ‘default” and enter INDIA in both country as well as region? will this cause any issues? – QUESTION 1

    I also want only the city, and not the country or region to show in the cpt and location URLs. I selected the option to ‘hide country in the cpt adn location url’ and it gives a 404?

    So how can i show only city (and not country, region) in the URL – QUESTION 2

    Thanks very much!

    #474525

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    Question 1 : no you can’t unless all cities are in the default region.

    question 2 : It should be possible to only have city name and not regions in URL

    If you provide a link and admin credentials we’ll check why you are getting that error.

    Thanks

    #474565

    Alex Rollin
    Moderator
    Post count: 27815

    The settings are documented here: https://wpgeodirectory.com/docs-v2/addons/location-manager/#short-urls

    If you have those settings but the changes are reflected, please share the page where we can see the bad link, too.

    #474688

    vivek
    Full Member
    Post count: 246

    Thanks, Paolo & Alex. I suppose i shall then have to live with the region in the URL, as i actually have cities in different regions but didn’t want to show the region in the URL – as i will not have the same city name in different regions, and my users will know that say Bengaluru is in Karnataka state, so it doesnt add value being in teh URL.
    No worries- thanks!

    #474693

    vivek
    Full Member
    Post count: 246

    About the 404, it happens on a cpt+location archive page when neighbourhoods is enabled.

    e.g. https://yopune.com/compt_coaching/delhi/new-delhi/

    When neighbourhood is disable the archive renders properly.

    However, even with neighbourhood enabled, the location archive page renders properly eg e.g. https://yopune.com/delhi/new-delhi/

    As well as cpt archive page renders properly e.g https://yopune.com/compt_coaching/

    (i currently do not have neighbourhoods set in most of my listings,and in cities, but still, the location page is rendering properly, while CPT+ location gives 404)

    #474747

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount